sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
Re: [SM-Discuss] RFC: Function to build the version number (<=name) for SCM branches
- From: Ismael Luceno <ismael.luceno AT gmail.com>
- To: sm-discuss <sm-discuss AT lists.ibiblio.org>
- Subject: Re: [SM-Discuss] RFC: Function to build the version number (<=name) for SCM branches
- Date: Wed, 2 Jul 2014 12:03:59 -0300
Meant number, not name. Anyway...
I'm hoping to slowly clean up the grimoire of all the redundancy.
Anyone against this patch?
On Wed, 2 Jul 2014 08:36:04 -0300
Ismael Luceno <ismael.luceno AT gmail.com> wrote:
> --- a/FUNCTIONS
> +++ b/FUNCTIONS
> @@ -662,6 +662,17 @@ function get_up_spell_name() {
> echo ${1:-$SPELL} | tr "a-z-" "A-Z_"
> }
>
> +#---
> +## Get branch-based/autoupdate-aware version name
> +#---
> +function get_scm_version() {
> + local spell=$(get_up_spell_name) &&
> + local vers="$spell"_BRANCH &&
> + local au="$spell"_AUTOUPDATE &&
> + echo "${!vers:-scm}$([[ "${!au}" = y ]] && date "+-%Y%m%d")"
> +}
> +
> +
> # Move SPELL_OPTS to OPTS
> # basicly generic OPTS="$SPELL_OPTS $OPTS"
> function prepare_opts() {
Attachment:
signature.asc
Description: PGP signature
-
[SM-Discuss] RFC: Function to build the version name for SCM branches,
Ismael Luceno, 07/02/2014
-
Re: [SM-Discuss] RFC: Function to build the version number (<=name) for SCM branches,
Ismael Luceno, 07/02/2014
-
Re: [SM-Discuss] RFC: Function to build the version number (<=name) for SCM branches,
Paul Vinogradov, 07/02/2014
-
Re: [SM-Discuss] RFC: Function to build the version number (<=name) for SCM branches,
Ismael Luceno, 07/02/2014
- Re: [SM-Discuss] RFC: Function to build the version number (<=name) for SCM branches, Paul Vinogradov, 07/02/2014
-
Re: [SM-Discuss] RFC: Function to build the version number (<=name) for SCM branches,
Ismael Luceno, 07/02/2014
-
Re: [SM-Discuss] RFC: Function to build the version number (<=name) for SCM branches,
Paul Vinogradov, 07/02/2014
-
Re: [SM-Discuss] RFC: Function to build the version number (<=name) for SCM branches,
Ismael Luceno, 07/02/2014
Archive powered by MHonArc 2.6.24.