case $1 in
-d|--debug) SET_X=true;;
-h|--help) usage;;
- -V|--version) echo '$Id$'; exit 0;;
+ -V|--version) emerge --version ; exit 0;;
*) usage 1 "Invalid option '$1'";;
esac
shift
def usage(argv):
print(">>> Portage information query tool")
- print(">>> $Id$")
+ print(">>> %s" % portage.VERSION)
print(">>> Usage: portageq <command> [<option> ...]")
print("")
print("Available commands:")
# Distributed under the terms of the GNU General Public License v2
# $Id$
-VERSION="$Rev$"[6:-2] + "-svn"
+VERSION="HEAD"
# ===========================================================================
# START OF IMPORTS -- START OF IMPORTS -- START OF IMPORTS -- START OF IMPORT