diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-04-17 09:31:16 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-04-17 09:31:16 +0000 |
commit | d52ae4d7d3a8335fb68ebaf53ad52e8586e8e29b (patch) | |
tree | 7a79d341b8778fb80ebdb578690cc1cdfbcb9990 /target/imagebuilder/Makefile | |
parent | 8f9824ccf45be2f694ec11ff0e20cac8e06bdbc8 (diff) | |
download | upstream-d52ae4d7d3a8335fb68ebaf53ad52e8586e8e29b.tar.gz upstream-d52ae4d7d3a8335fb68ebaf53ad52e8586e8e29b.tar.bz2 upstream-d52ae4d7d3a8335fb68ebaf53ad52e8586e8e29b.zip |
[imagebuilder] don't overwrite version.mk, substitute REVISION instead
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31327 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/imagebuilder/Makefile')
-rw-r--r-- | target/imagebuilder/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/imagebuilder/Makefile b/target/imagebuilder/Makefile index 3d04656250..686a175065 100644 --- a/target/imagebuilder/Makefile +++ b/target/imagebuilder/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2006-2012 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -44,7 +44,7 @@ $(BIN_DIR)/$(IB_NAME).tar.bz2: clean $(PKG_BUILD_DIR)/target/linux/*/patches{,-*} -cp $(KERNEL_BUILD_DIR)/* $(IB_KDIR)/ # don't copy subdirectories here -cp $(LINUX_DIR)/.config $(IB_LDIR)/ - echo REVISION:="$(REVISION)" > $(PKG_BUILD_DIR)/include/version.mk + $(SED) 's,^# REVISION:=.*,REVISION:=$(REVISION),g' $(PKG_BUILD_DIR)/include/version.mk find $(PKG_BUILD_DIR) -name CVS -o -name .git -o -name .svn \ | $(XARGS) rm -rf $(TAR) c -C $(BUILD_DIR) $(IB_NAME) | bzip2 -c > $@ |