Changeset f266cab in freewrt


Ignore:
Timestamp:
Jul 25, 2006, 3:27:51 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
cb6190f
Parents:
1b4c85d
Message:

if ${WRKSRC}/.patched-newfiles was not created by the
prepare target of the original extraction (i.e. the
pre-existing diffs did not patch any new files into
existence), quell generation of patch files for files
which exist in ${WRKSRC} but do not exist in the
distfile

this quells creation of stuff like patch-deflate_o
in zlib after running a compile (although there are
still fallouts: patch-Makefile and patch-zconf_h,
which will only be not generated if WRKBUILD!=WRKSRC)

new policy (from OpenBSD ports): do not patch any
files into existence, use the ./extra facility instead.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@410 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/update-patches

    r1b4c85d rf266cab  
    7575    (cd $WRKDIST; pax -rw -0 -d $ORGDIST/) >/dev/null 2>&1
    7676
     77if [[ -e $WRKDIST/.patched-newfiles ]]; then
     78        touch $ORGDIST/.patched-newfiles
     79        patch_newfiles=1
     80else
     81        patch_newfiles=0
     82fi
     83
    7784DIFF_FLAGS="-adu -I \"^--- $(echo $D_SUB.orig/ | $TRANSFORM)@@  .*\""
    7885DIFF_FLAGS="$DIFF_FLAGS -I \"^\+\+\+ $(echo $D_SUB/ | $TRANSFORM)@@     .*\""
    7986
    8087for file in $(cd ${WRKDIST}; find . -type f | sed 's#^\./##'); do
     88        [[ ! -e $ORGDIST/$file && $patch_newfiles = 0 ]] && continue
    8189        cmp -s "$ORGDIST/$file" "$WRKDIST/$file" && continue
    8290        echo "Processing ${file}..." >&2
Note: See TracChangeset for help on using the changeset viewer.