Jelajahi Sumber

fix newpackage target, translate - to _

Waldemar Brodkorb 14 tahun lalu
induk
melakukan
ab4199af7f
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      mk/build.mk

+ 1 - 1
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:]'); \
+	pkg=$$(echo $(PKG)|tr '[:lower:]' '[:upper:]'|sed -e "s/-/_/g"); \
 		$(SED) "s#@UPKG@#$$pkg#" $(TOPDIR)/package/$(PKG)/Makefile
 	$(SED) 's#@PKG@#$(PKG)#' $(TOPDIR)/package/$(PKG)/Makefile
 	$(SED) 's#@VER@#$(VER)#' $(TOPDIR)/package/$(PKG)/Makefile