[X2Go-Commits] [buildscripts] 03/07: bin/build-rpm-package: move ${TEMP_BASE} into "global scope" to have it always defined.
git-admin at x2go.org
git-admin at x2go.org
Wed Apr 1 10:18:08 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 4ba5111b7ef34e107b0b20656b33e071bf27a6a6
Author: Mihai Moldovan <ionic at ionic.de>
Date: Wed Apr 1 10:13:52 2015 +0200
bin/build-rpm-package: move ${TEMP_BASE} into "global scope" to have it always defined.
---
bin/build-rpm-package | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 8be91e7..e17cd9d 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -60,6 +60,7 @@ RPM_BUILD_FOR=${RPM_BUILD_FOR:-"fedora:$FEDORA_DISTROS epel:$EPEL_DISTROSi opens
# These parts are not user-servicable.
TMP_MOCK_CFG_DIR=""
TMP_MOCK_CFG_FILE=""
+TEMP_BASE="${HOME}/tmp/"
# End of non-user-servicable part.
set -ex
@@ -123,9 +124,8 @@ function make_boolean () {
}
set_vars() {
- TEMP_BASE="$HOME/tmp/"
- mkdir -p "$TEMP_BASE"
- chmod 2770 "$TEMP_BASE"
+ mkdir -p "${TEMP_BASE}"
+ chmod 2770 "${TEMP_BASE}"
# first argv is the name of the Git project
PROJECT_PATH="$1"
@@ -163,7 +163,6 @@ set_vars() {
LOCK_FILE=$PROJECT_DIR/../.$PROJECT.lock
# creating paths
- mkdir -p "$TEMP_BASE"
mkdir -p "$PROJECT_DIR"
mkdir -p "$PKGDIST"
--
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