Previously, `shamir' had no version string at all; programs based on
`keyfunc.sh' didn't print their program name, and `extract-profile'
didn't print the package name.
OP = O.OptionParser(
usage = '%prog SECTION FILE|DIRECTORY ...',
OP = O.OptionParser(
usage = '%prog SECTION FILE|DIRECTORY ...',
- version = '%%prog, version %s' % VERSION,
+ version = '%%prog, %s version %s' % (PACKAGE, VERSION),
description = '''\
Parse the configurations FILE and DIRECTORY contents, and output the named
SECTION as a sequence of simple assignments.
description = '''\
Parse the configurations FILE and DIRECTORY contents, and output the named
SECTION as a sequence of simple assignments.
### Subcommand handling.
version () {
### Subcommand handling.
version () {
- echo "$PACKAGE version $VERSION"
+ echo "$quis, $PACKAGE version $VERSION"
from cStringIO import StringIO
import optparse as OPT
from cStringIO import StringIO
import optparse as OPT
+PACKAGE = '@PACKAGE@'
+VERSION = '@VERSION@'
+
###--------------------------------------------------------------------------
### Arithmetic in GF(2^8).
###
###--------------------------------------------------------------------------
### Arithmetic in GF(2^8).
###
opts, args = op.parse_args(args[1:])
sub.func(gopts, opts, args)
opts, args = op.parse_args(args[1:])
sub.func(gopts, opts, args)
-OPTPARSE = SubcommandOptionParser(description = """\
+OPTPARSE = SubcommandOptionParser(
+ usage = '%prog SUBCOMMAND [ARGS ...]',
+ version = '%%prog, %s version %s' % (PACKAGE, VERSION),
+ description = """\
Split and recombine secrets using Shamir's secret sharing system.
""")
Split and recombine secrets using Shamir's secret sharing system.
""")