]> repo.cephalix.eu Git - template.git/commitdiff
Adapt template.
authorroot <root@git.cephalix.eu>
Tue, 14 Aug 2018 18:21:38 +0000 (20:21 +0200)
committerroot <root@git.cephalix.eu>
Tue, 14 Aug 2018 18:21:38 +0000 (20:21 +0200)
Makefile

index 7d28a10f74f35ba12247e16946d6041fd52a9e1b..2037617e1cd66c61fa133516e0182b783b063801 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,10 +7,12 @@ NRELEASE        = $(shell echo $(RELEASE) + 1 | bc )
 
 
 package:
+       if [ ! -e oss-pkg-$(PACKAGE).spec ]; then cp ../template/package.spec oss-pkg-$(PACKAGE).spec; fi
        sed -i s/VERSION/$(VERSION)/g  oss-pkg-$(PACKAGE).spec
        sed -i s/RELEASE/$(NRELEASE)/g oss-pkg-$(PACKAGE).spec
        sed -i s/PACKAGE/$(PACKAGE)/g  oss-pkg-$(PACKAGE).spec
        mkdir -p oss-pkg-$(PACKAGE)
+       if [ ! -e $(PACKAGE).sls ];  then cp ../template/template.sls $(PACKAGE).sls; fi
        sed s/PACKAGE/$(PACKAGE)/g  $(PACKAGE).sls > oss-pkg-$(PACKAGE)/$(PACKAGE).sls
        if [ -d repo-ng ]; then ln -s ../repo-ng/ oss-pkg-$(PACKAGE)/repo-ng; fi
        tar hjcvpf oss-pkg-$(PACKAGE).tar.bz2 oss-pkg-$(PACKAGE)