Changeset 54f72bc in freewrt for package


Ignore:
Timestamp:
Jul 25, 2006, 1:36:46 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
ecb5fbe
Parents:
f3b127c
Message:

(cd package/foo; TOPDIR=../.. gmake update-patches) # should now work

IMPORTANT: gmake TOPDIR=../.. foo *does not work* (since it overrides
the correct value which otherwise gets pulled from prereq.mk after it
has been found from the environment-TOPDIR value and gets preference)

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/rules.mk

    rf3b127c r54f72bc  
    102102
    103103update-patches:
    104         @echo >&2 not ready;exit 1
     104        @test ! -d ${WRKDIR}.orig || rm -rf ${WRKDIR}.orig
     105        @test ! -d ${WRKDIR}.orig
     106        @$(MAKE) -s V=0 prepare WRKDIR=${WRKDIR}.orig PATCH=:
    105107        @toedit=$$(WRKDIST='${WRKSRC}' PATCHDIR=$$(pwd)/patches \
    106             PATCH_LIST='${PATCH_LIST}' DIFF_ARGS= \
    107             DISTORIG=.bak.orig PATCHORIG=.orig \
     108            PATCH_LIST='patch-* *.patch' WRKDIR1='${WRKDIR}' \
    108109            ${BASH} ${TOPDIR}/scripts/update-patches); \
    109             if [[ -n $$toedit ]]; then \
    110                 read i?'edit patches: '; \
     110            if [[ -n $$toedit && $$toedit != FAIL ]]; then \
     111                echo -n 'edit patches: '; read i; \
    111112                cd patches && $${VISUAL:-$${EDITOR:-/usr/bin/vi}} $$toedit; \
    112         fi
     113            fi; \
     114            rm -rf ${WRKDIR}.orig; \
     115            [[ $$toedit != FAIL ]]
    113116
    114117.PHONY: all source prepare compile install clean update-patches
Note: See TracChangeset for help on using the changeset viewer.