summaryrefslogtreecommitdiff
path: root/openwrt/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-10-22 16:34:35 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-10-22 16:34:35 +0000
commitc9302014674395d54334fd959fff35e6171c2889 (patch)
treeebe802c160f3036fd97dd71d6f5687cadd6c8f61 /openwrt/package
parent5ba6af516e14689b9f48d5e1713e981fe9149930 (diff)
downloadmtk-20170518-c9302014674395d54334fd959fff35e6171c2889.zip
mtk-20170518-c9302014674395d54334fd959fff35e6171c2889.tar.gz
mtk-20170518-c9302014674395d54334fd959fff35e6171c2889.tar.bz2
add svn revision to /etc/banner
SVN-Revision: 2246
Diffstat (limited to 'openwrt/package')
-rw-r--r--openwrt/package/base-files/Makefile6
-rw-r--r--openwrt/package/base-files/default/etc/banner4
2 files changed, 8 insertions, 2 deletions
diff --git a/openwrt/package/base-files/Makefile b/openwrt/package/base-files/Makefile
index 78e1f0a..c1dd8c6 100644
--- a/openwrt/package/base-files/Makefile
+++ b/openwrt/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
diff --git a/openwrt/package/base-files/default/etc/banner b/openwrt/package/base-files/default/etc/banner
index 610c0f3..02da7e8 100644
--- a/openwrt/package/base-files/default/etc/banner
+++ b/openwrt/package/base-files/default/etc/banner
@@ -3,5 +3,5 @@
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-
- bleeding edge ;)
+
+ bleeding edge, $R ;)