From: fred Date: Tue, 7 Jul 1998 13:38:24 +0000 (+0000) Subject: lilypond-1.0.1 X-Git-Tag: release/1.5.59~5908 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=cfe6b6a0d5540805935ae1b421748c38090e42a2;p=lilypond.git lilypond-1.0.1 --- diff --git a/stepmake/bin/release.py b/stepmake/bin/release.py new file mode 100755 index 0000000000..6397ceb70c --- /dev/null +++ b/stepmake/bin/release.py @@ -0,0 +1,74 @@ +#!@PYTHON@ +# release.py + +name = 'release' +version = '0.1' + +import os +import sys +import getopt + +(options, files) = getopt.getopt(sys.argv[1:], 'hp:', ['help', 'package=']) + +def help (): + sys.stdout.write ("Usage: release [OPTION]...\n" + "Make a tarball and patch and combined ../test/updeet\n\n" + + "Options:\n" + + " -h, --help print this help\n" + + " -p, --package=DIR specify package\n" + ) + sys.exit (0) + +for opt in options: + o = opt[0] + a = opt[1] + if o == '-h' or o == '--help': + help () + elif o == '-p' or o == '--package': + topdir = a + +sys.path.append (topdir + '/stepmake/bin') +from packagepython import * +package = Package (topdir) +packager = Packager () +from flower import * + +os.chdir(package.topdir) +status =os.system('make dist') +if status: + raise 'make dist failed' + +cur_ver = package.version +# urg? +# print tarball(cur_ver) +barbaal=package.name + '-' + version_tuple_to_str (cur_ver) + '.tar.gz' +print barbaal +# os.rename('out/' + tarball(cur_ver), released_tarball(cur_ver)) +# hmmm +os.remove(package.release_dir + barbaal) +os.link('out/' + barbaal, package.release_dir + barbaal) +os.chdir(package.test_dir) +os.system('set -x; rm ' + package.test_dir + package.name + '*gz') +# os.link(released_tarball(cur_ver), tarball(cur_ver)) +os.link(package.release_dir + barbaal, barbaal) + +# not a module, but a script (JCN) +# makepatch.main() + +# Module wherefore aren't thou Script +# A Rose by any other name would be as blonde. --HWN + +# urg +# os.system('@PYTHON@ ' + package.topdir + '/stepmake/bin/package-diff.py --package=' + topdir) +os.system('python ' + package.topdir + '/stepmake/bin/package-diff.py --package=' + topdir) + +pn = package.name + '-%s' % version_tuple_to_str(cur_ver) +pn = pn + '.diff' +pn = pn + '.gz' +rel_pn = package.patch_dir + pn + +os.rename(pn, rel_pn) +os.link(rel_pn, pn) + +os.system('tar cf ' + package.nickname + ' *gz') +