[X2Go-Commits] [buildscripts] 02/04: bin/build-{{deb, rpm}-package, nsis-package.sh}: source new common file.

git-admin at x2go.org git-admin at x2go.org
Sun May 10 05:52:32 CEST 2015


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository buildscripts.

commit e740ba64c279f3dbef8b17b6c8be30ab419a5d47
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sun May 10 05:33:25 2015 +0200

    bin/build-{{deb,rpm}-package,nsis-package.sh}: source new common file.
---
 bin/build-deb-package     |    4 +++-
 bin/build-nsis-package.sh |    4 ++++
 bin/build-rpm-package     |    4 ++++
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/bin/build-deb-package b/bin/build-deb-package
index d28abb7..2d0adef 100755
--- a/bin/build-deb-package
+++ b/bin/build-deb-package
@@ -18,7 +18,9 @@
 # Free Software Foundation, Inc.,
 # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 
-export PATH="${HOME}/bin:${PATH}"
+typeset script_path="$(basename "$(readlink -e "${BASH_SOURCE}")")"
+
+. "${script_path}/common.sh"
 
 GIT_USER="gituser"
 GIT_HOSTNAME="git.mydomain.org"
diff --git a/bin/build-nsis-package.sh b/bin/build-nsis-package.sh
index d74115f..abf3763 100755
--- a/bin/build-nsis-package.sh
+++ b/bin/build-nsis-package.sh
@@ -25,6 +25,10 @@
 #       It needs to be run under cygwin.
 #       It also needs to be placed under /cygdrive/d/Build/buildscripts/bin/
 
+typeset script_path="$(basename "$(readlink -e "${BASH_SOURCE}")")"
+
+. "${script_path}/common.sh"
+
 set -ex
 
 export PATH="${HOME}/bin:/cygdrive/d/Build/buildscripts/bin:${PATH}"
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 7b54e6a..fa2b445 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -18,6 +18,10 @@
 # Free Software Foundation, Inc.,
 # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 
+typeset script_path="$(basename "$(readlink -e "${BASH_SOURCE}")")"
+
+. "${script_path}/common.sh"
+
 GIT_USER="gituser"
 GIT_HOSTNAME="git.mydomain.org"
 

--
Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git


More information about the x2go-commits mailing list