Skip to Content.
Sympa Menu

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

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 z-rejected grimoire by Ismael Luceno (e8c2fb981ba95909d34e98255fc070f4e6fa9d6f)
  • Date: Thu, 19 Oct 2017 04:10:14 +0000

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

ChangeLog | 1 +
FUNCTIONS | 14 ++++++++++++++
2 files changed, 15 insertions(+)

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

FUNCTIONS: Add get_scm_version

diff --git a/ChangeLog b/ChangeLog
index 13a9452..06f8649 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
2017-10-19 Ismael Luceno <ismael AT sourcemage.org>
* z-editors/uemacs: new spell, Full screen editor based on MicroEMACS
3.9e
+ * FUNCTIONS: Added get_scm_version from test grimoire

2017-09-06 Ismael Luceno <ismael AT sourcemage.org>
* z-devel/bitkeeper: Moved to main grimoire, now under Apache-2.0
diff --git a/FUNCTIONS b/FUNCTIONS
index 7d9cf1a..8523e25 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -699,4 +699,18 @@ function get_up_spell_name() {
echo ${1:-$SPELL} | tr "a-z-" "A-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" &&
+ if [ "${!spell_autoupdate}" = "y" ]; then
+ echo $(date "+%Y%m%d")
+ else
+ echo ${!spell_branch:-scm}
+ fi
+}
+
. $GRIMOIRE/glselect.function



  • [SM-Commit] GIT changes to master z-rejected grimoire by Ismael Luceno (e8c2fb981ba95909d34e98255fc070f4e6fa9d6f), Ismael Luceno, 10/19/2017

Archive powered by MHonArc 2.6.24.

Top of Page