diff options
author | Daniel Joseph Barnhart Clark <dclark@pobox.com> | 2006-10-17 01:04:30 +0000 |
---|---|---|
committer | Daniel Joseph Barnhart Clark <dclark@pobox.com> | 2006-10-17 01:04:30 +0000 |
commit | 0dc8322aa194f791e056276d35e783bd0d88ab50 (patch) | |
tree | 1d4502b40197dd137d31ec6b392877cb41f1981f /encap/src/encap-profiles | |
parent | 93cd70298fa1c76ad28863340bae54d60622e474 (diff) | |
download | bcfg2-0dc8322aa194f791e056276d35e783bd0d88ab50.tar.gz bcfg2-0dc8322aa194f791e056276d35e783bd0d88ab50.tar.bz2 bcfg2-0dc8322aa194f791e056276d35e783bd0d88ab50.zip |
EncapPackages: Fix previous commit
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2440 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'encap/src/encap-profiles')
-rw-r--r-- | encap/src/encap-profiles/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/encap/src/encap-profiles/Makefile b/encap/src/encap-profiles/Makefile index 2deea4d82..674206cd5 100644 --- a/encap/src/encap-profiles/Makefile +++ b/encap/src/encap-profiles/Makefile @@ -150,7 +150,7 @@ encaps : $(EPKG) $(MKENCAP) $(EP2TARGET) $(addsuffix .packaged,$(sources)) rename : encaps if [ "$(OS)x" != "x" ]; then OS="$(OS)"; fi && \ if [ "$${OS}x" != "x" ]; then \ - for OLDNAME in `ls . | grep *-encap-*.tar.gz`; do \ + for OLDNAME in `(ls . | grep *-encap-*.tar.gz) || break`; do \ NEWNAME="`printf "%s\n" "$${OLDNAME}" \ | awk -F- '{$$NF = "OSDIST.tar.gz" ; print}' \ | sed s:\ :-:g | sed s:OSDIST:\$${OS}:g`" ; \ @@ -160,7 +160,7 @@ rename : encaps done; \ fi - for OLDNAME in `ls . | grep *-doc-*-encap-*.tar.gz`; do \ + for OLDNAME in `(ls . | grep *-doc-*-encap-*.tar.gz) || break`; do \ NEWNAME="`printf "%s\n" "$${OLDNAME}" \ | awk -F- '{$$NF = "OSDIST.tar.gz" ; print}' \ | sed s:\ :-:g | sed s:OSDIST:share:g`" ; \ |