Skip to Content.
Sympa Menu

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

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 (c79e420575c392273c4993bc84c712ee5708c8db)
  • Date: Sat, 19 Apr 2014 13:13:45 -0500

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

ChangeLog | 3 +++
FUNCTIONS | 25 +++++++++++++++++++++++++
2 files changed, 28 insertions(+)

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

FUNCTIONS: Added prepare_select_branch from test grimoire

diff --git a/ChangeLog b/ChangeLog
index 6a96194..8bc61a7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2014-04-19 Ismael Luceno <ismael AT sourcemage.org>
+ * FUNCTIONS: Added prepare_select_branch from test grimoire
+
2014-04-15 Ismael Luceno <ismael AT sourcemage.org>
* z-utils/odeskteam: new spell, oDesk Team client

diff --git a/FUNCTIONS b/FUNCTIONS
index 2caf622..c68a713 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -642,3 +642,28 @@ function is_version_less() {
}

. $GRIMOIRE/glselect.function
+
+#---
+## Select SCM branch. If no parameter is given, it assumes a single scm
branch.
+##
+## Saves selected branch in ${SPELL}_BRANCH, and auto-update setting on
+## ${SPELL}_AUTOUPDATE.
+##
+## Usage:
+## . ${GRIMOIRE}/FUNCTIONS &&
+## prepare_select_branch [branch] ...
+#---
+function prepare_select_branch() {
+ local spell=$(get_up_spell_name) &&
+ local branch="$spell"_BRANCH &&
+
+ if [[ $# > 1 ]]; then
+ config_query_list $branch "Select one of the available branches:" "$@"
+ else
+ eval $branch=\""${1:-scm}"\"
+ fi &&
+
+ if [[ "${!branch/-*}" = scm ]]; then
+ config_query "$spell"_AUTOUPDATE 'Automatically update on every system
update?' n
+ fi
+}



  • [SM-Commit] GIT changes to master z-rejected grimoire by Ismael Luceno (c79e420575c392273c4993bc84c712ee5708c8db), Ismael Luceno, 04/19/2014

Archive powered by MHonArc 2.6.24.

Top of Page