Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (fc676197b8718a13742c0b6c26a0127ca5e476d9)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (fc676197b8718a13742c0b6c26a0127ca5e476d9)
  • Date: Thu, 3 Jul 2014 09:05:03 -0500

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

ChangeLog | 6 ++++++
FUNCTIONS | 14 +++++++++++++-
2 files changed, 19 insertions(+), 1 deletion(-)

New commits:
commit fc676197b8718a13742c0b6c26a0127ca5e476d9
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

FUNCTIONS: Fix get_up_spell_name to handle the dot and plus symbols

commit 1cb0116b167025e3758bcdac6a9b70166e7dfb50
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

FUNCTIONS: Add get_scm_version function

diff --git a/ChangeLog b/ChangeLog
index cfb47f8..293aab1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-07-03 Ismael Luceno <ismael AT sourcemage.org>
+ * FUNCTIONS: Fix get_up_spell_name to handle the dot and plus symbols
+
+2014-07-02 Ismael Luceno <ismael AT sourcemage.org>
+ * FUNCTIONS: Added get_scm_version function
+
2014-06-29 Treeve Jelbert <treeve AT sourcemage.org>
* libs/librevenge: WordPerfect Document importer
* libs/libodfgen: ODF generator, originally by Javier Vasquez
diff --git a/FUNCTIONS b/FUNCTIONS
index 970d697..07a2322 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -659,9 +659,21 @@ function prepare_select_branch() {
## Get uppercase spell name with _ instead of -
#---
function get_up_spell_name() {
- echo ${1:-$SPELL} | tr "a-z-" "A-Z_"
+ echo ${1:-$SPELL} | tr "-.+a-z" "__XA-Z"
}

+#---
+## Get branch-based/autoupdate-aware version number
+#---
+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")"
+}
+
+
# Move SPELL_OPTS to OPTS
# basicly generic OPTS="$SPELL_OPTS $OPTS"
function prepare_opts() {



  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (fc676197b8718a13742c0b6c26a0127ca5e476d9), Ismael Luceno, 07/03/2014

Archive powered by MHonArc 2.6.24.

Top of Page