Changeset 2359

Show
Ignore:
Timestamp:
04/14/07 22:24:26 (2 years ago)
Author:
tg
Message:

• optimise: don't read out the “svn status” a hundred times when one time

is enough (hint: not everything needs to be a gmake variable) – this is
by me, it annoyed me often enough

• don't use a local call to the svn client programme; this fails to build

if it's not installed – noticed by Pawel Szubartowski, thanks

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/package/base-files/Makefile

    r2319 r2359  
    1717 
    1818$(eval $(call PKG_template,BASE_FILES,base-files,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
    19  
    20 REV:=$(shell svn info | awk '/^Revision:/ { print$$2 }' ) 
    21 ifeq ($(REV),) 
    22 REV:=0 
    23 endif 
    2419 
    2520MD5CRYPT:=              $(shell $(MKPASSWD) $(FWRT_RUNTIME_PASSWORD)) 
     
    4742do-install: 
    4843        $(CP) ./files/* $(IDIR_BASE_FILES) 
    49         $(SED) 's,$$R,$(REV),g' $(IDIR_BASE_FILES)/etc/banner 
     44        typeset -i REV="$$(head -n 4 .svn/entries | tail -1)"; \ 
     45            ${SED} 's,$$R,'$$REV,g $(IDIR_BASE_FILES)/etc/banner 
    5046        test -z $(FWRT_RUNTIME_PACKAGES_URL) || \ 
    5147            $(SED) 's,^src freewrt.*$$,src freewrt $(FWRT_RUNTIME_PACKAGES_URL),' \