From 08a5e54d40e2009b5bd0ddda2fa7dd9b2c6e4abf Mon Sep 17 00:00:00 2001 From: Bryan Andrews Date: Tue, 14 Apr 2015 09:57:04 -0600 Subject: [PATCH] externalized version and release in the fpm script to work with CI/CD better --- contrib/fpm-createPackages.sh | 3 +-- contrib/version.sh | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 contrib/version.sh diff --git a/contrib/fpm-createPackages.sh b/contrib/fpm-createPackages.sh index 6c0e603..f4175b1 100755 --- a/contrib/fpm-createPackages.sh +++ b/contrib/fpm-createPackages.sh @@ -20,8 +20,7 @@ URI="https://github.com/BIAndrews/sshfail2kml" LIC="GPLv3" PROV="sshfail2kml" EMAIL="bryanandrews@gmail.com" -VER="#VER#" -RELEASE="#BUILD#" +. version.sh install -d $DIR/var/lib/sshfail2kml $DIR/etc/cron.d $DIR/usr/bin cp -f ../sshfail2kml $DIR/usr/bin diff --git a/contrib/version.sh b/contrib/version.sh new file mode 100644 index 0000000..25aea62 --- /dev/null +++ b/contrib/version.sh @@ -0,0 +1,3 @@ +# example, external file to work better with CI/CD +VER="1.99" +RELEASE="100"