]> repo.cephalix.eu Git - template.git/commitdiff
Make init file more flexible
authorbuildmaster <buildmaster@git.cephalix.eu>
Tue, 19 Oct 2021 12:24:48 +0000 (14:24 +0200)
committerbuildmaster <buildmaster@git.cephalix.eu>
Tue, 19 Oct 2021 12:24:48 +0000 (14:24 +0200)
Makefile
init.sls.ini [moved from init.sls with 100% similarity]

index 24f92c2e884c27a8c99a0686bcb9bd8465f2b26b..6f8bca9d2d857d1c7f9f8a742291dd3a6937d6dd 100644 (file)
--- 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
similarity index 100%
rename from init.sls
rename to init.sls.ini