[anaconda-storage-branch PATCH 4/6] Fix some errors in the updates target.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
---
 Makefile |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index b2a75c7..2555181 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 ; \
-- 
1.6.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux