1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-29 18:07:31 +02:00

add svn revision to /etc/banner

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2246 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2005-10-22 16:34:35 +00:00
parent 8c70130e61
commit aafabbeea6
2 changed files with 8 additions and 2 deletions

View File

@ -6,6 +6,11 @@ PKG_NAME:=base-files
PKG_RELEASE:=2 PKG_RELEASE:=2
PKG_BUILD_DIR:=$(BUILD_DIR)/base-files PKG_BUILD_DIR:=$(BUILD_DIR)/base-files
REV:=${shell svn info | grep Revision | cut -d ' ' -f 2}
ifeq ($(REV),)
REV:=0
endif
include $(TOPDIR)/package/rules.mk include $(TOPDIR)/package/rules.mk
IDIR_BASE:=$(PKG_BUILD_DIR)/base-files IDIR_BASE:=$(PKG_BUILD_DIR)/base-files
@ -34,6 +39,7 @@ $(PKG_BUILD_DIR)/.built:
$(IPKG_BASE): $(IPKG_BASE):
$(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_BASE) ipkg/$(PKG_NAME).control $(PKG_RELEASE) $(ARCH) $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_BASE) ipkg/$(PKG_NAME).control $(PKG_RELEASE) $(ARCH)
cp -a ./default/* $(IDIR_BASE) cp -a ./default/* $(IDIR_BASE)
$(SED) 's,$$R,r$(REV),g' $(IDIR_BASE)/etc/banner
mkdir -p $(IDIR_BASE)/jffs mkdir -p $(IDIR_BASE)/jffs
mkdir -p $(IDIR_BASE)/dev mkdir -p $(IDIR_BASE)/dev
mkdir -p $(IDIR_BASE)/proc mkdir -p $(IDIR_BASE)/proc

View File

@ -3,5 +3,5 @@
| - || _ | -__| || | | || _|| _| | - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____| |_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M |__| W I R E L E S S F R E E D O M
bleeding edge ;) bleeding edge, $R ;)