[csw-devel] SF.net SVN: opencsw:[510] gar-wrapper
skayser at users.sourceforge.net
skayser at users.sourceforge.net
Sun Aug 14 20:05:25 CEST 2011
Revision: 510
http://opencsw.svn.sourceforge.net/opencsw/?rev=510&view=rev
Author: skayser
Date: 2011-08-14 18:05:25 +0000 (Sun, 14 Aug 2011)
Log Message:
-----------
mgar: include package version in version output
Modified Paths:
--------------
gar-wrapper/CHANGES
gar-wrapper/mgar
Modified: gar-wrapper/CHANGES
===================================================================
--- gar-wrapper/CHANGES 2011-08-14 17:57:54 UTC (rev 509)
+++ gar-wrapper/CHANGES 2011-08-14 18:05:25 UTC (rev 510)
@@ -1,6 +1,7 @@
Changes since 0.92 (r380):
* Improved error message when running a package specific command in
a non-package directory
+* Added package version to "version" command
Changes since 0.91 (r360):
* mgar will now warn and exit on legacy gar/ directories or symlinks
Modified: gar-wrapper/mgar
===================================================================
--- gar-wrapper/mgar 2011-08-14 17:57:54 UTC (rev 509)
+++ gar-wrapper/mgar 2011-08-14 18:05:25 UTC (rev 510)
@@ -55,6 +55,7 @@
set -u
set -e
+VERSION=0.92-dev
EDITOR=${EDITOR:-vi}
PATH=$PATH:/opt/csw/bin
DEF_BUILDTREE=~/opencsw
@@ -554,7 +555,8 @@
"$BUILDTREE"
svn up "$BUILDTREE/.buildsys"
;;
- version) grep '^# $Id:' $0 | cut -d" " -f4;;
+ version) printf "%s (r%s)\n" \
+ $VERSION `grep '^# $Id:' $0 | cut -d" " -f4`;;
# /global-cmds
# per-pkg-cmds
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list