summaryrefslogtreecommitdiff
path: root/scripts/update-patches
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/update-patches')
-rw-r--r--scripts/update-patches11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/update-patches b/scripts/update-patches
index d38a8fdf4..a180b96be 100644
--- a/scripts/update-patches
+++ b/scripts/update-patches
@@ -77,11 +77,22 @@ else
patch_newfiles=0
fi
+if [[ -e $WRKDIST/../.autoreconf_done ]]; then
+ touch $ORGDIST/.autoreconf_done
+ ignore_autoconf=1
+else
+ ignore_autoconf=0
+fi
+
DIFF_FLAGS="-adu -I \"^--- $(echo $D_SUBP.orig/ | $TRANSFORM)@@ .*\""
DIFF_FLAGS="$DIFF_FLAGS -I \"^\+\+\+ $(echo $D_SUBP/ | $TRANSFORM)@@ .*\""
for file in $(cd ${WRKDIST}; find . -type f | sed 's#^\./##'); do
+ echo "DEBUG: $file" >> /tmp/debug
[[ ! -e $ORGDIST/$file && $patch_newfiles = 0 ]] && continue
+ [[ $file = configure && $ignore_autoconf = 1 ]] && continue
+ [[ $file = config.h.in && $ignore_autoconf = 1 ]] && continue
+ [[ $(basename $file) = Makefile.in && $ignore_autoconf = 1 ]] && continue
cmp -s "$ORGDIST/$file" "$WRKDIST/$file" && continue
echo "Processing ${file}..." >&2
# look in patchdir for an existing patchfile matching this