sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Pol Vinogradov (2bce02ea2705c165468dccb647a60400e2be8f6b)
- From: Pol Vinogradov <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (2bce02ea2705c165468dccb647a60400e2be8f6b)
- Date: Thu, 3 Jul 2014 23:22:08 -0500
GIT changes to master grimoire by Pol Vinogradov <vin.public AT gmail.com>:
FUNCTIONS | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
New commits:
commit 2bce02ea2705c165468dccb647a60400e2be8f6b
Author: Pol Vinogradov <vin.public AT gmail.com>
Commit: Pol Vinogradov <vin.public AT gmail.com>
FUNCTIONS: more fixes in get_scm_version
diff --git a/FUNCTIONS b/FUNCTIONS
index 78cc048..4ca4510 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -667,13 +667,15 @@ function get_up_spell_name() {
#---
function get_scm_version() {
local spell=$(get_up_spell_name) &&
- local spell_branch=${"$spell"_BRANCH} &&
- local spell_autoupdate=${"$spell"_AUTOUPDATE} &&
- echo "${!$spell_branch:-scm}$(
- [[ "${!$spell_autoupdate}" = y ]] && date "+-%Y%m%d")"
+ local spell_branch="${spell}_BRANCH" &&
+ local spell_autoupdate="${spell}_AUTOUPDATE" &&
+ if [ "${!spell_autoupdate}" = "y" ]; then
+ echo $(date "+%Y%m%d")
+ else
+ echo ${!spell_branch:-scm}
+ fi
}
-
# Move SPELL_OPTS to OPTS
# basicly generic OPTS="$SPELL_OPTS $OPTS"
function prepare_opts() {
- [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (2bce02ea2705c165468dccb647a60400e2be8f6b), Pol Vinogradov, 07/04/2014
Archive powered by MHonArc 2.6.24.