From: root Date: Tue, 14 Aug 2018 18:21:38 +0000 (+0200) Subject: Adapt template. X-Git-Url: https://repo.cephalix.eu/gitweb/?a=commitdiff_plain;h=eaf7d27fde97b6d3f9a7b3a2db0420cb72c5305c;p=template-old.git Adapt template. --- diff --git a/Makefile b/Makefile index 7d28a10..2037617 100644 --- 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)