Build new _isys.so for updates.img if needed.
If _isys.so module code has changed, build a new module and copy it
in to updates.img. Also fix a problem with the KEEP=y variable.
---
Makefile | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index d5fa032..f7dff9a 100644
--- a/Makefile
+++ b/Makefile
@@ -183,6 +183,7 @@ updates:
@if [ ! -d updates-img ]; then
mkdir updates-img ;
fi ;
+ build_isys="$$(git diff --stat anaconda-11.5.0.35-1 isys | grep " | " | cut -d ' ' -f 2 | egrep "(Makefile|.h|.c)$$")" ;
git diff --stat $(ARCHIVE_TAG) | grep " | " |
grep -v ".spec" | grep -v "Makefile" | grep -v ".c " |
grep -v ".h" | grep -v ".sh" |
@@ -199,11 +200,15 @@ updates:
cp -a $$sourcefile updates-img ;;
esac ;
done ;
+ if [ ! -z "$$build_isys" ]; then
+ make -C isys ;
+ cp isys/_isys.so updates-img ;
+ fi ;
cd updates-img ;
echo -n "Creating updates.img..." ;
( find . | cpio -c -o | gzip -9c ) > ../updates.img ;
cd .. ;
keep="$$(echo $(KEEP) | cut -c1 | tr [a-z] [A-Z])" ;
if [ ! "$$keep" = "Y" ]; then
- rm -rf updates-imgs ;
+ rm -rf updates-img ;
fi
--
1.6.2
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list