diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-03-17 12:28:39 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-03-18 09:24:09 -1000 |
commit | ff0de7c1875788ac69052e091c2aac53de8fb7bb (patch) | |
tree | 5324a4dc5ba8f55efc47459c549709dd54c84184 /Makefile | |
parent | 311a818539bb36af2bb0821190d8cbab9db04170 (diff) | |
download | anaconda-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-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 ; \ |