aboutsummaryrefslogtreecommitdiff
path: root/trunk/lib/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/lib/common.sh')
-rw-r--r--trunk/lib/common.sh10
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