Procházet zdrojové kódy

make the Makefile work again, this time with a smarter sed command :-)
actually use TARFILE

Morten Brix Pedersen před 24 roky
rodič
revize
15b57a6c8c
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -1,7 +1,7 @@
 # Bloated Makefile to make new releases of pisg
 # Bloated Makefile to make new releases of pisg
 
 
 # Ugly hack to get the version number from Pisg.pm
 # Ugly hack to get the version number from Pisg.pm
-VERSION = `grep "version =>" modules/Pisg.pm | mawk '{ gsub(/.*"v/, ""); gsub(/".*/, ""); print}'`
+VERSION = `grep "version =>" modules/Pisg.pm | sed 's/.*\"\(.*\)\".*/\1/'`
 
 
 DIRNAME = pisg-$(VERSION)
 DIRNAME = pisg-$(VERSION)
 
 
@@ -96,7 +96,7 @@ pisg:
 	cp $(PARSER_MODULES) $(DIRNAME)/$(MODULESDIR)/Pisg/Parser
 	cp $(PARSER_MODULES) $(DIRNAME)/$(MODULESDIR)/Pisg/Parser
 	cp $(FORMAT_MODULES) $(DIRNAME)/$(MODULESDIR)/Pisg/Parser/Format
 	cp $(FORMAT_MODULES) $(DIRNAME)/$(MODULESDIR)/Pisg/Parser/Format
 
 
-	tar zcfv newrelease/pisg-$(VERSION).tar.gz $(DIRNAME)
+	tar zcfv newrelease/$(TARFILE) $(DIRNAME)
 	zip -r pisg $(DIRNAME)
 	zip -r pisg $(DIRNAME)
 	mv pisg.zip newrelease/$(ZIPFILE)
 	mv pisg.zip newrelease/$(ZIPFILE)
 	mv $(DIRNAME) newrelease
 	mv $(DIRNAME) newrelease