diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-09-09 20:21:06 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-09-09 20:21:06 +0000 |
commit | a691e38cf594fadb1a783ce093c9a491ba607730 (patch) | |
tree | bc8b58b76331bd8b7e5f7c642de6d2d904ba06b0 /trunk/lib/common.sh | |
parent | 7b7d3181a8a4c9b59ac42b4986549d1989fa1aba (diff) | |
download | simplepkg-a691e38cf594fadb1a783ce093c9a491ba607730.tar.gz simplepkg-a691e38cf594fadb1a783ce093c9a491ba607730.tar.bz2 |
Fixing procedures used to find packages
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@815 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/lib/common.sh')
-rw-r--r-- | trunk/lib/common.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index ea4130d..f1879c1 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -74,11 +74,11 @@ function pkg_ext_find { if [ ! -z "$1" ]; then match="$1" else - match="*" + match="'*'" fi exts="`echo "$(pkg_ext $match)" | sed -e 's/ / -or -name /g'`" - echo "( -name $exts )" + echo "\( -name $exts \)" } @@ -1228,7 +1228,7 @@ function gen_filelist { # generate FILELIST.TXT # usage: gen_filelist - find . -type f $(pkg_ext_find) -follow -print | sort | tr '\n' '\0' | \ + eval find . -type f -and $(pkg_ext_find) -follow -print | sort | tr '\n' '\0' | \ xargs -0r ls -ldL --time-style=long-iso > FILELIST.TXT echo "Created new FILELIST.TXT" @@ -1250,7 +1250,7 @@ function gen_patches_filelist { cd $folder - find . -type f $(pkg_ext_find) -follow -print | sort | tr '\n' '\0' | \ + eval find . -type f -and $(pkg_ext_find) -follow -print | sort | tr '\n' '\0' | \ xargs -0r ls -ldL --time-style=long-iso > FILE_LIST svn_add FILE_LIST @@ -1316,7 +1316,7 @@ function gen_md5_checksums { echo 'MD5 digest for files in this directory.' > CHECKSUMS.md5 echo '' >> CHECKSUMS.md5 - find . -type f $(pkg_ext_find) -exec md5sum {} \; >> CHECKSUMS.md5 + eval find . -type f -and $(pkg_ext_find) -exec md5sum {} \; >> CHECKSUMS.md5 cat CHECKSUMS.md5 | gzip -9 -c - > CHECKSUMS.md5.gz svn_add CHECKSUMS.md5 |