]> repo.cephalix.eu Git - Lernwerkstatt10.git/commitdiff
New release
authorbuildmaster <buildmaster@git.cephalix.eu>
Sun, 14 Apr 2019 20:07:03 +0000 (22:07 +0200)
committerbuildmaster <buildmaster@git.cephalix.eu>
Sun, 14 Apr 2019 20:07:03 +0000 (22:07 +0200)
Makefile
RELEASE

index d8f16d3dff3c0e303893989070cc956c56e8bf3c..91993586ec84ad2519ca50e23542dad83d6b835c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,8 @@ NRELEASE        = $(shell echo $(RELEASE) + 1 | bc )
 YEAR           = $(shell date +%Y )
 
 package:
+       rm -rf oss-pkg-$(PACKAGE)
+       rm -f repo-ng/repo-ng
        sed    s/VERSION/$(VERSION)/g  oss-pkg-$(PACKAGE).spec.in > oss-pkg-$(PACKAGE).spec
        sed -i s/RELEASE/$(NRELEASE)/g oss-pkg-$(PACKAGE).spec
        sed -i s/PACKAGE/$(PACKAGE)/g  oss-pkg-$(PACKAGE).spec
@@ -21,6 +23,7 @@ package:
        rpmbuild -bb oss-pkg-$(PACKAGE).spec
        for i in $(REPO)/noarch/oss-pkg-$(PACKAGE)-$(VERSION)-*.rpm; do test -e $$i && rm $$i; done 
        mv /usr/src/packages/RPMS/noarch/oss-pkg-$(PACKAGE)-$(VERSION)-$(NRELEASE).noarch.rpm $(REPO)/noarch
+       createrepo $(REPO)
        echo $(NRELEASE) > RELEASE
        git commit -a -m "New release"
        git push
diff --git a/RELEASE b/RELEASE
index 0cfbf08886fca9a91cb753ec8734c84fcbe52c9f..00750edc07d6415dcc07ae0351e9397b0222b7ba 100644 (file)
--- a/RELEASE
+++ b/RELEASE
@@ -1 +1 @@
-2
+3