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

index 2037617e1cd66c61fa133516e0182b783b063801..68bafd5019707496199112ef4b885c01815dda70 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ REPO            = /srv/www/repo/TESTING/salt-packages/
 VERSION         = $(shell cat VERSION )
 RELEASE         = $(shell cat RELEASE )
 NRELEASE        = $(shell echo $(RELEASE) + 1 | bc )
+YEAR           = $(shell date +%Y )
 
 
 package:
@@ -11,6 +12,7 @@ package:
        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
+       sed -i s/YEAR/$(YEAR)/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
index 2f458836d84d016682cf2c5ad39c10cc52666094..079b12d8ea16b4a57df1da3b1ad4fcf2999e9070 100644 (file)
@@ -1,6 +1,6 @@
 #
 # Spec file for PACKAGE
-# Copyright (c) YEAR Helmuth Varkoly and Peter Varkoly Nürnberg, Germany.  All rights reserved.
+# Copyright (c) YEAR Helmuth Varkoly and Peter Varkoly Nuremberg, Germany.  All rights reserved.
 #
 
 Name:         oss-pkg-PACKAGE