ponysay/configure
Mattias Andrée 1d04401b0c Revert "Merge pull request #91 from gtmanfred/master"
This reverts commit ef7d50ac03, reversing
changes made to 28d8263093.

This edits is faulty, the parameters given to setup.py was correct,
this will messes up things if PREFIX is omitted. The error was actually
a missed commit.
2012-08-27 21:46:52 +02:00

24 lines
700 B
Bash
Executable file

#!/bin/sh
function makeMakefile()
{
params=''
for arg in "$@"; do
params="$params '$(echo $arg | sed -e "s/'/'\\''/g")'"
done
echo 'PARAMS ='"$params"
echo
echo -e 'default: all\n'
echo -e 'all: build\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'
}
makeMakefile "$@" > Makefile