summaryrefslogtreecommitdiffstats
path: root/admin/Sources/Clients/ogagent/linux/build-packages.sh
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2019-05-22 20:44:10 +0200
committerRamón M. Gómez <ramongomez@us.es>2019-05-22 20:44:10 +0200
commitf8ee49b34a703ddfc969e5452c2aca4523351d1e (patch)
tree46e25e1ead5d0bb6bdea45a4ab1aad1bc30fd5d8 /admin/Sources/Clients/ogagent/linux/build-packages.sh
parentb994c5c324fe2a960a2a440b42d9660c5aa28f1f (diff)
#913: Using version file to create and install new OGAgent 1.1.0a agents.
Diffstat (limited to 'admin/Sources/Clients/ogagent/linux/build-packages.sh')
-rwxr-xr-xadmin/Sources/Clients/ogagent/linux/build-packages.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/admin/Sources/Clients/ogagent/linux/build-packages.sh b/admin/Sources/Clients/ogagent/linux/build-packages.sh
index b4f11077..02b5ee12 100755
--- a/admin/Sources/Clients/ogagent/linux/build-packages.sh
+++ b/admin/Sources/Clients/ogagent/linux/build-packages.sh
@@ -1,11 +1,11 @@
#!/bin/bash
-VERSION=1.1.0
-RELEASE=1
-
cd $(dirname "$0")
top=`pwd`
+[ -r ../src/VERSION ] && VERSION="$(cat ../src/VERSION)" || VERSION="1.1.0"
+RELEASE="1"
+
# Debian based
dpkg-buildpackage -b -d