From: buildmaster Date: Tue, 19 Oct 2021 12:24:48 +0000 (+0200) Subject: Make init file more flexible X-Git-Url: https://repo.cephalix.eu/gitweb/?a=commitdiff_plain;h=2b03647dc72f29685b2898297849c1b3f4a5fdda;p=template.git Make init file more flexible --- diff --git a/Makefile b/Makefile index 24f92c2..6f8bca9 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ package: sed -i s/RELEASE/$(NRELEASE)/g oss-pkg-$(PACKAGE).spec sed -i s/PACKAGE/$(PACKAGE)/g oss-pkg-$(PACKAGE).spec sed -i s/YEAR/$(YEAR)/g oss-pkg-$(PACKAGE).spec - grep -q TOREPLACE repo-ng/init.sls && { echo "Adapt repo-ng/init.sls"; exit 1 } + sed s/VERSION/$(VERSION)/g init.sls.ini > repo-ng/init.sls ../oss-pkg-tools/create_hash.sh $(PACKAGE) mkdir -p oss-pkg-$(PACKAGE) sed s/PACKAGE/$(PACKAGE)/g $(PACKAGE).sls > oss-pkg-$(PACKAGE)/$(PACKAGE).sls @@ -32,8 +32,7 @@ init: mv oss-pkg-packages.spec.in oss-pkg-$(PACKAGE).spec.in sed -i 's/PACKAGE/$(PACKAGE)/g' oss-pkg-$(PACKAGE).spec.in mkdir repo-ng - mv init.sls repo-ng/ - sed -i 's/PACKAGE/$(PACKAGE)/g' repo-ng/init.sls + sed -i 's/PACKAGE/$(PACKAGE)/g' repo-ng/init.sls.ini mv temlate.sls $(PACKAGE).sls sed -i 's/PACKAGE/$(PACKAGE)/g' $(PACKAGE).sls git init diff --git a/init.sls b/init.sls.ini similarity index 100% rename from init.sls rename to init.sls.ini