+localedir = '@localedir@'
+try:
+ import gettext
+ gettext.bindtextdomain ('lilypond', localedir)
+ gettext.textdomain ('lilypond')
+ _ = gettext.gettext
+except:
+ def _ (s):
+ return s
+
+# Attempt to fix problems with limited stack size set by Python!
+# Sets unlimited stack size. Note that the resource module only
+# is available on UNIX.
+try:
+ import resource
+ resource.setrlimit (resource.RLIMIT_STACK, (-1, -1))
+except:
+ pass
+
+
+help_summary = _ ("Fetch and rebuild from latest source package")
+
+option_definitions = [
+ ('DIR', 'b', 'build-root', _ ("unpack and build in DIR [%s]") % build_root),
+ ('COMMAND', 'c', 'command', _ ("execute COMMAND, subtitute:") \
+ + '\n ' + _ ("%b: build root") \
+ + '\n ' + _ ("%n: package name") \
+ + '\n ' + _ ("%r: release directory") \
+ + '\n ' + _ ("%t: tarball") \
+ + '\n ' + _ ("%v: package version") \
+ ),
+ ('', 'h', 'help', _ ("this help")),
+ ('', 'k', 'keep', _ ("keep all output, and name the directory %s") % temp_dir),
+ ('EMAIL', 'n', 'notify', _ ("upon failure notify EMAIL[,EMAIL]")),
+ ('', 'r', 'remove-previous', _ ("remove previous build")),
+ ('', 'V', 'verbose', _ ("verbose")),
+ ('', 'v', 'version', _ ("print version number")),
+ ('URL', 'u', 'url', _ ("fetch and build URL [%s]") % url),
+ ('', 'w', 'warranty', _ ("show warranty and copyright")),
+ ]