[X2Go-Commits] [buildscripts] 01/01: bin/build-{{deb, rpm}-package, nsis-package.sh}: use dirname instead of basename to get the shell script's directory.
git-admin at x2go.org
git-admin at x2go.org
Sun May 10 06:40:41 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 55ae2d0597707bd7d0d4da430b85460ba9fb606c
Author: Mihai Moldovan <ionic at ionic.de>
Date: Sun May 10 06:40:41 2015 +0200
bin/build-{{deb,rpm}-package,nsis-package.sh}: use dirname instead of basename to get the shell script's directory.
---
bin/build-deb-package | 2 +-
bin/build-nsis-package.sh | 2 +-
bin/build-rpm-package | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/bin/build-deb-package b/bin/build-deb-package
index 0c7124e..8ac4cb6 100755
--- a/bin/build-deb-package
+++ b/bin/build-deb-package
@@ -18,7 +18,7 @@
# Free Software Foundation, Inc.,
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
-typeset script_path="$(basename "$(readlink -e "${BASH_SOURCE}")")"
+typeset script_path="$(dirname "$(readlink -e "${BASH_SOURCE}")")"
. "${script_path}/common.sh"
diff --git a/bin/build-nsis-package.sh b/bin/build-nsis-package.sh
index 9739d2b..c7d6af6 100755
--- a/bin/build-nsis-package.sh
+++ b/bin/build-nsis-package.sh
@@ -25,7 +25,7 @@
# 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}")")"
+typeset script_path="$(dirname "$(readlink -e "${BASH_SOURCE}")")"
. "${script_path}/common.sh"
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 4b8623c..6bd8716 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -18,7 +18,7 @@
# Free Software Foundation, Inc.,
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
-typeset script_path="$(basename "$(readlink -e "${BASH_SOURCE}")")"
+typeset script_path="$(dirname "$(readlink -e "${BASH_SOURCE}")")"
. "${script_path}/common.sh"
--
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