From 6fef59fc47beb30b4664bdb5e693e7e4ab4ffabe Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 27 Aug 2012 14:45:11 +0200 Subject: package notes in info concerning the packages info and sh --- manuals/ponysay.texinfo | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manuals/ponysay.texinfo b/manuals/ponysay.texinfo index 4e2b6ad..e2453c6 100644 --- a/manuals/ponysay.texinfo +++ b/manuals/ponysay.texinfo @@ -692,6 +692,9 @@ Required to run the @command{./configure} script. (Optional) Used in the @command{./configure} script. (Optional) @end table +Note that @command{info} may actually be a part of @command{texinfo}; +@command{sh} should be provided another shell, such as @command{bash}. + @node Dependencies for pony providers @section Dependencies for pony providers -- cgit From a3447540e1e3113416e613405cc95a6bc1dd13b2 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 27 Aug 2012 17:32:26 +0200 Subject: make fix --- configure | 6 ++++-- setup.py | 15 ++++++++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/configure b/configure index d831985..7ac2b50 100755 --- a/configure +++ b/configure @@ -12,9 +12,11 @@ function makeMakefile() echo echo -e 'default: all\n' echo -e 'all: build\n' - for func in $(echo 'build' 'prebuilt' 'install' 'uninstall' 'uninstall-old' 'clean' 'clean-old' 'view'); do - echo -e "$func"':\n\t./setup.py $(PARAMS) '"$func"'\n' + for func in $(echo 'build' 'prebuilt' 'uninstall' 'uninstall-old' 'clean' 'clean-old' 'view'); do + echo -e "$func"':\n\t./setup.py ---DESTDIR="$(DESTDIR)" ---PREFIX="$(PREFIX)" $(PARAMS) '"$func"'\n' done + echo -e 'install-build:\n\t./setup.py ---DESTDIR="$(DESTDIR)" ---PREFIX="$(PREFIX)" $(PARAMS) install\n' + echo -e 'install:\n\t./setup.py ---DESTDIR="$(DESTDIR)" ---PREFIX="$(PREFIX)" $(PARAMS) prebuilt\n' } diff --git a/setup.py b/setup.py index 891ee9c..1279238 100755 --- a/setup.py +++ b/setup.py @@ -64,6 +64,8 @@ class Setup(): opts.add_argumentless(alternatives = ['--help']) opts.add_argumentless(alternatives = ['--version']) + opts.add_argumented (alternatives = ['---DESTDIR'], arg="DESTDIR") + opts.add_argumented (alternatives = ['---PREFIX'], arg="PREFIX") opts.add_argumentless(help = 'Install everything that is not explicity excluded', alternatives = ['--everything', '--with-everything']) opts.add_argumentless(help = 'Install only the essentials\nNote that this can vary depending on version', alternatives = ['--minimal']) @@ -137,6 +139,17 @@ class Setup(): self.linking = opts.opts['--linking'][0] + if (opts.opts['---DESTDIR'] is not None) and (opts.opts['--dest-dir'] is not None): + destdir = opts.opts['---DESTDIR'][0] + if len(destdir) > 0: + opts.opts['--dest-dir'] = [destdir] + + if (opts.opts['---PREFIX'] is not None) and (opts.opts['--prefix'] is not None): + prefix = opts.opts['---PREFIX'][0] + if len(prefix) > 0: + opts.opts['--prefix'] = [prefix] + + if (len(opts.files) > 1) or (opts.opts['--help'] is not None) or ((len(opts.files) == 1) and (opts.files[0] == 'help')): opts.help() elif (opts.opts['--version'] is not None) or ((len(opts.files) == 1) and (opts.files[0] == 'version')): @@ -784,7 +797,7 @@ class Setup(): destdir = opts['--dest-dir'][0] for key in conf: if conf[key] not in (None, False, True): - if conf.startswith('/'): + if conf[key].startswith('/'): conf[key] = destdir + conf[key] return conf -- cgit From 1c4108284509c1950d3b208aa27df9d768149841 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 27 Aug 2012 17:33:04 +0200 Subject: set version to 2.5.1 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1279238..ad416ba 100755 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ from subprocess import Popen, PIPE -PONYSAY_VERSION = '2.5' +PONYSAY_VERSION = '2.5.1' -- cgit