summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2010-01-22 22:36:38 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-01-23 08:46:32 +0100
commit5cb78c4c3bcbc05c3f9464b21c52f872ad041cf1 (patch)
tree1a1e2bef5fd1c63cd6b4ea27ac4bc5711287238f /mk
parent17b7c89bbcbbffe4f777cca1011f1e2ea74672d9 (diff)
improve package name conversion to makefile variable
No need to call sed here, as tr already does exactly what we want to, just by extending the expression passed to it.
Diffstat (limited to 'mk')
-rw-r--r--mk/build.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/build.mk b/mk/build.mk
index 1fa253b11..20c08b15a 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -188,7 +188,7 @@ kernelconfig:
newpackage:
@echo "Creating new package $(PKG)"
$(CP) $(TOPDIR)/package/.template $(TOPDIR)/package/$(PKG)
- pkg=$$(echo $(PKG)|tr '[:lower:]' '[:upper:]'|sed -e "s/-/_/g"); \
+ pkg=$$(echo $(PKG)|tr '[:lower:]-' '[:upper:]_'); \
$(SED) "s#@UPKG@#$$pkg#" $(TOPDIR)/package/$(PKG)/Makefile
$(SED) 's#@PKG@#$(PKG)#' $(TOPDIR)/package/$(PKG)/Makefile
$(SED) 's#@VER@#$(VER)#' $(TOPDIR)/package/$(PKG)/Makefile