Changeset 410

Show
Ignore:
Timestamp:
07/25/06 15:27:51 (2 years ago)
Author:
tg
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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/scripts/update-patches

    r407 r410  
    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