aboutsummaryrefslogtreecommitdiffstats
path: root/target/sdk
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-04-13 10:47:45 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-04-13 10:47:45 +0000
commit93b8648b153836157f63850adea87b32f4b5cea8 (patch)
treeeba816bd000e0f98c8659f77fc106cc2d788f8a7 /target/sdk
parent4b230e19fc765c582555647945d4380c37cecc49 (diff)
downloadupstream-93b8648b153836157f63850adea87b32f4b5cea8.tar.gz
upstream-93b8648b153836157f63850adea87b32f4b5cea8.tar.bz2
upstream-93b8648b153836157f63850adea87b32f4b5cea8.zip
don't overwrite version.mk, substitute REVISION instead
SVN-Revision: 31271
Diffstat (limited to 'target/sdk')
-rw-r--r--target/sdk/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/sdk/Makefile b/target/sdk/Makefile
index 737404108d..99177984e2 100644
--- a/target/sdk/Makefile
+++ b/target/sdk/Makefile
@@ -56,7 +56,7 @@ $(BIN_DIR)/$(SDK_NAME).tar.bz2: clean
> $(SDK_BUILD_DIR)/feeds.conf.default
cat $(TOPDIR)/feeds.conf.default \
>> $(SDK_BUILD_DIR)/feeds.conf.default
- echo REVISION:="$(REVISION)" > $(SDK_BUILD_DIR)/include/version.mk
+ $(SED) 's,^# REVISION:=.*,REVISION:=$(REVISION),g' $(SDK_BUILD_DIR)/include/version.mk
find $(SDK_BUILD_DIR) -name .git | $(XARGS) rm -rf
find $(SDK_BUILD_DIR) -name .svn | $(XARGS) rm -rf
find $(SDK_BUILD_DIR) -name CVS | $(XARGS) rm -rf