Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (132363d653976f6a21006996d41d91ef902ce85f)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • 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 (132363d653976f6a21006996d41d91ef902ce85f)
  • Date: Thu, 3 Jul 2014 19:08:29 -0500

GIT changes to master grimoire by Pol Vinogradov <vin.public AT gmail.com>:

ChangeLog | 3 +++
FUNCTIONS | 10 +++++-----
2 files changed, 8 insertions(+), 5 deletions(-)

New commits:
commit 132363d653976f6a21006996d41d91ef902ce85f
Author: Pol Vinogradov <vin.public AT gmail.com>
Commit: Pol Vinogradov <vin.public AT gmail.com>

FUNCTIONS: more fixes to recent changes

diff --git a/ChangeLog b/ChangeLog
index 293aab1..d23b1ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2014-07-03 Pol Vinogradov <vin.public AT gmail.com>
+ * FUNCTIONS: more fixes to get_up_spell_name and get_scm_version
+
2014-07-03 Ismael Luceno <ismael AT sourcemage.org>
* FUNCTIONS: Fix get_up_spell_name to handle the dot and plus symbols

diff --git a/FUNCTIONS b/FUNCTIONS
index 07a2322..78cc048 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -659,7 +659,7 @@ function prepare_select_branch() {
## Get uppercase spell name with _ instead of -
#---
function get_up_spell_name() {
- echo ${1:-$SPELL} | tr "-.+a-z" "__XA-Z"
+ echo ${1:-$SPELL} | tr '.+a-z-' '_XA-Z_'
}

#---
@@ -667,10 +667,10 @@ 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} &&
+ echo "${!$spell_branch:-scm}$(
+ [[ "${!$spell_autoupdate}" = y ]] && date "+-%Y%m%d")"
}





  • [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (132363d653976f6a21006996d41d91ef902ce85f), Pol Vinogradov, 07/03/2014

Archive powered by MHonArc 2.6.24.

Top of Page