From 5cb78c4c3bcbc05c3f9464b21c52f872ad041cf1 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 22 Jan 2010 22:36:38 +0100 Subject: 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. --- mk/build.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mk/build.mk') 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 -- cgit v1.2.3