diff options
author | Daniel Joseph Barnhart Clark <dclark@pobox.com> | 2007-06-22 03:45:22 +0000 |
---|---|---|
committer | Daniel Joseph Barnhart Clark <dclark@pobox.com> | 2007-06-22 03:45:22 +0000 |
commit | b8ad83fd8e8d58a461d12bd2ca78fb09144a9256 (patch) | |
tree | a84b27709f27f33de6d3a5230299905f4f64f7a1 /encap/src/encap-profiles | |
parent | 9f9a13cf06eb24fbc39bec5e4f4bca1bd3135a2c (diff) | |
download | bcfg2-b8ad83fd8e8d58a461d12bd2ca78fb09144a9256.tar.gz bcfg2-b8ad83fd8e8d58a461d12bd2ca78fb09144a9256.tar.bz2 bcfg2-b8ad83fd8e8d58a461d12bd2ca78fb09144a9256.zip |
EncapPackages: Change grep rename command; it looks like latest grep forces use of regexps (!?). Hopefully this won't break other platforms.
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3329 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 71b0a8364..8e55cbebf 100644 --- a/encap/src/encap-profiles/Makefile +++ b/encap/src/encap-profiles/Makefile @@ -157,7 +157,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) || break`; 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`" ; \ @@ -167,7 +167,7 @@ rename : encaps done; \ fi - for OLDNAME in `(ls . | grep *-doc-*-encap-*.tar.gz) || break`; 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`" ; \ |