diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-10-22 16:34:35 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-10-22 16:34:35 +0000 |
commit | 5c474e33b3f1b81368b09dee50a3969c6f2e79a5 (patch) | |
tree | e26ce3fbfcd69025ea7c3c56d328d00b083b1df2 /package/base-files/Makefile | |
parent | f9970eb8f83bde1d8482e14444089c3016e2a172 (diff) | |
download | upstream-5c474e33b3f1b81368b09dee50a3969c6f2e79a5.tar.gz upstream-5c474e33b3f1b81368b09dee50a3969c6f2e79a5.tar.bz2 upstream-5c474e33b3f1b81368b09dee50a3969c6f2e79a5.zip |
add svn revision to /etc/banner
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2246 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/Makefile')
-rw-r--r-- | package/base-files/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 78e1f0a534..c1dd8c69fc 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -6,6 +6,11 @@ PKG_NAME:=base-files PKG_RELEASE:=2 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 IDIR_BASE:=$(PKG_BUILD_DIR)/base-files @@ -34,6 +39,7 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_BASE): $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_BASE) ipkg/$(PKG_NAME).control $(PKG_RELEASE) $(ARCH) cp -a ./default/* $(IDIR_BASE) + $(SED) 's,$$R,r$(REV),g' $(IDIR_BASE)/etc/banner mkdir -p $(IDIR_BASE)/jffs mkdir -p $(IDIR_BASE)/dev mkdir -p $(IDIR_BASE)/proc |