From: "André Erdmann" <dywi@mailerd.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/R_overlay:master commit in: bin/build/
Date: Fri, 18 Jul 2014 16:20:05 +0000 (UTC) [thread overview]
Message-ID: <1405697633.6bb55c0f9bb8925a50cb4e2f9aec302da6037500.dywi@gentoo> (raw)
commit: 6bb55c0f9bb8925a50cb4e2f9aec302da6037500
Author: André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Fri Jul 18 15:33:53 2014 +0000
Commit: André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Fri Jul 18 15:33:53 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=6bb55c0f
bin/build/setver.sh: change suffix handling
---
bin/build/setver.sh | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/bin/build/setver.sh b/bin/build/setver.sh
index ae8b048..bf5bf67 100755
--- a/bin/build/setver.sh
+++ b/bin/build/setver.sh
@@ -170,10 +170,11 @@ while [ ${#} -gt 0 ]; do
--force-commit) want_forcecommit=true ;;
--git-tag) want_gittag=true ;;
- [Mmp]bump) ACTION="${1}" ;;
- '+') ACTION=pbump ;;
- '++') ACTION=mbump ;;
- *.*.*) ACTION=setver; V="${1}" ;;
+ [Mmp]bump) ACTION="${1}" ;;
+ '+') ACTION=pbump ;;
+ '++') ACTION=mbump ;;
+ *.*.*) ACTION=setver; V="${1}" ;;
+ *.*.*[-_]*) ACTION=setver; V="${1}"; new_suffix= ;;
setver)
[ -n "${2-}" ] || die "one non-empty arg required after '${1}'."
@@ -218,18 +219,18 @@ autodie parse_version "${OLDVER}"
case "${ACTION-}" in
pbump)
inc "${plvl}"
- V="${major}.${minor}.${v0}${new_suffix}"
+ V="${major}.${minor}.${v0}"
;;
mbump)
inc "${minor}"
- V="${major}.${v0}.0${new_suffix}"
+ V="${major}.${v0}.0"
;;
Mbump)
inc "${major}"
- V="${v0}.0.0${new_suffix}"
+ V="${v0}.0.0"
;;
setver)
- true
+ V="${V}${new_suffix}"
;;
*)
${want_reset} || die "unknown or no action specified."
next reply other threads:[~2014-07-18 16:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-18 16:20 André Erdmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-07-18 16:20 [gentoo-commits] proj/R_overlay:master commit in: bin/build/ André Erdmann
2014-06-05 22:09 André Erdmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1405697633.6bb55c0f9bb8925a50cb4e2f9aec302da6037500.dywi@gentoo \
--to=dywi@mailerd.de \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox