summaryrefslogtreecommitdiff
path: root/scripts/update-patches
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2014-05-03 11:37:49 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2014-05-03 12:33:12 (GMT)
commit86e0e3c62349dfb43e66a78a57cf7110ef577a0f (patch)
tree4af0da40222138875914adee6770cdb5aa08f5c1 /scripts/update-patches
parent8a0005b61300850e11fe19202ccd2118736ec661 (diff)
use find -print0 with proper shell handling
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Diffstat (limited to 'scripts/update-patches')
-rw-r--r--scripts/update-patches4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/update-patches b/scripts/update-patches
index 1d13a39..ee580c5 100644
--- a/scripts/update-patches
+++ b/scripts/update-patches
@@ -90,7 +90,9 @@ fi
DIFF_FLAGS="-adu -I \"^--- $(print -r -- "$D_SUBP.orig/" | $TRANSFORM)@@ .*\""
DIFF_FLAGS="$DIFF_FLAGS -I \"^\+\+\+ $(print -r -- "$D_SUBP/" | $TRANSFORM)@@ .*\""
-for file in $(cd ${WRKDIST}; find . -type f | sed 's#^\./##'); do
+(cd "${WRKDIST}"; find . -type f -print0) |&
+while IFS= read -p -d '' -r file; do
+ file=${file#./}
#print -r -- "DEBUG: <$file>" >>/tmp/debug
[[ ! -e $ORGDIST/$file && $patch_newfiles = 0 ]] && continue
[[ $file = configure && $ignore_autoconf = 1 ]] && continue