summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-03-17 12:28:39 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-03-18 09:24:09 -1000
commitff0de7c1875788ac69052e091c2aac53de8fb7bb (patch)
tree5324a4dc5ba8f55efc47459c549709dd54c84184 /Makefile
parent311a818539bb36af2bb0821190d8cbab9db04170 (diff)
downloadanaconda-ff0de7c1875788ac69052e091c2aac53de8fb7bb.tar.gz
anaconda-ff0de7c1875788ac69052e091c2aac53de8fb7bb.tar.xz
anaconda-ff0de7c1875788ac69052e091c2aac53de8fb7bb.zip
Fix some errors in the updates target.
Nothing critical, wipe subdirs before copying new ones in. Use the case block to skip of subdirs we want to ignore. Don't use dirname, but just cut the first field in $sourcefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b2a75c75b..2555181f6 100644
--- a/Makefile
+++ b/Makefile
@@ -184,14 +184,16 @@ updates:
mkdir updates-img ; \
fi ; \
git diff --stat $(ARCHIVE_TAG) | grep " | " | \
- grep -v "^\ loader\/" | grep -v "\.spec" | grep -v "Makefile" | \
- grep -v "^\ po\/" | grep -v "^\ scripts\/" | \
+ grep -v "\.spec" | grep -v "Makefile" | grep -v "\.c\ " | \
while read sourcefile stuff ; do \
- dn="$$(dirname $$sourcefile)" ; \
+ dn="$$(echo $$sourcefile | cut -d '/' -f 1)" ; \
case $$dn in \
installclasses|storage|booty) \
+ rm -rf updates-img/$$dn ; \
cp -a $$dn updates-img ; \
find updates-img/$$dn -type f | grep Makefile | xargs rm -f ;; \
+ loader|po|scripts|command-stubs|tests|bootdisk|docs|fonts|utils|gptsync) \
+ continue ;; \
*) \
cp -a $$sourcefile updates-img ;; \
esac ; \