From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 874C21387FD for ; Fri, 18 Jul 2014 16:20:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CD277E09C7; Fri, 18 Jul 2014 16:20:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 59F0FE09C9 for ; Fri, 18 Jul 2014 16:20:11 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6D6583403E5 for ; Fri, 18 Jul 2014 16:20:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id BBF1119405 for ; Fri, 18 Jul 2014 16:20:05 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1405697812.9fd99e101f586bf91f551b79e8296ca4a5c9ce41.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: bin/build/ X-VCS-Repository: proj/R_overlay X-VCS-Files: bin/build/setver.sh X-VCS-Directories: bin/build/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 9fd99e101f586bf91f551b79e8296ca4a5c9ce41 X-VCS-Branch: master Date: Fri, 18 Jul 2014 16:20:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 359c147e-1557-4f6d-b0fa-4bdcd98ad63f X-Archives-Hash: 84ff0c089bdb5fe95faa0afaefb49140 commit: 9fd99e101f586bf91f551b79e8296ca4a5c9ce41 Author: André Erdmann mailerd de> AuthorDate: Fri Jul 18 15:36:52 2014 +0000 Commit: André Erdmann mailerd de> CommitDate: Fri Jul 18 15:36:52 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=9fd99e10 bin/build/setver.sh: --help --- bin/build/setver.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/build/setver.sh b/bin/build/setver.sh index bf5bf67..221bb40 100755 --- a/bin/build/setver.sh +++ b/bin/build/setver.sh @@ -2,6 +2,8 @@ # # Sets roverlay's version. # +print_help() { +cat << EOF | sed -re 's,^[#]\s?,,' # Usage: setver [-S,--src ] [--pretend] [--suffix ] [--reset] # [--git-add] [--git-commit] [--force-commit] [--git-tag] # [+,pbump|++,mbump|Mbump|[setver] ] @@ -24,6 +26,8 @@ # --force-commit -- enforce git commit (allow other files) # --git-tag -- run git-tag after git-commit # +EOF +} set -e set -u readonly IFS_DEFAULT="${IFS}" @@ -194,6 +198,10 @@ while [ ${#} -gt 0 ]; do echo "VERSION" exit 0 ;; + -h|--help) + print_help + exit 0 + ;; *) die "unknown arg: ${1}" 64