appliance: Use a temporary file when processing packagelist.in.
authorRichard W.M. Jones <rjones@redhat.com>
Sun, 19 Dec 2010 10:55:03 +0000 (10:55 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Sun, 19 Dec 2010 10:55:03 +0000 (10:55 +0000)
appliance/Makefile.am

index cd4952a..f1c2327 100644 (file)
@@ -43,7 +43,8 @@ make.sh: make.sh.in
 
 packagelist: packagelist.in
        cpp -undef -D$(DISTRO)=1 < $< | \
-       grep -v '^[[:space:]]*$$' | grep -v '^#' > $@
+       grep -v '^[[:space:]]*$$' | grep -v '^#' > $@-t
+       mv $@-t $@
 
 supermin.d/base.img supermin.d/hostfiles: stamp-supermin
 stamp-supermin: make.sh packagelist