diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-09-01 15:43:52 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-09-01 15:43:52 +0200 |
commit | c07d0c2d2f6f7b0eb6e92cc6204bf05037957e82 (patch) | |
tree | 41791cbe367cf023b98043fee56f9346b2592b49 /ziparch.sh | |
parent | d7f89e6fe63b8697fab5a901cfce457b375638b3 (diff) |
Imported Upstream version 1.6.3upstream/1.6.3
Diffstat (limited to 'ziparch.sh')
-rw-r--r-- | ziparch.sh | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -9,6 +9,10 @@ rm -rf _zipdir mkdir _zipdir NOTFOUND= +# Split on lines, not spaces +OIFS="$IFS" +IFS=' +' for i in `cat adirs bdirs` do echo @@ -35,9 +39,9 @@ do fi fi - if [ ! -e ${i}/${j} ] ; then + if [ ! -e "${i}/${j}" ] ; then echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Can't find file ${i}/${j} !!!!!!!!!!!!!!!!!!!!!!!!!!!!!" - NOTFOUND="$NOTFOUND ${i}/${j}" + NOTFOUND=$NOTFOUND ${i}/${j} else dos2unix ${i}/${j} cp ${i}/${j} _zipdir/${i}/${j} @@ -72,7 +76,7 @@ do if [ ! -e ${i}/${j} ] ; then echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Can't find file ${i}/${j} !!!!!!!!!!!!!!!!!!!!!!!!!!!!!" - NOTFOUND="$NOTFOUND ${i}/${j}" + NOTFOUND=$NOTFOUND ${i}/${j} else dos2unix ${i}/${j} cp ${i}/${j} _zipdir/${i}/${j} @@ -94,3 +98,5 @@ if [ "X$NOTFOUND" != "X" ] ; then echo "!!!!!! Didn't find $NOTFOUND !!!!!!" fi echo "Finished Complete Argyll source archive argyll.zip... " + +IFS="$OIFS" |