mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 20:38:00 +01:00
1d04401b0c
This reverts commitef7d50ac03
, reversing changes made to28d8263093
. 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.
24 lines
700 B
Bash
Executable file
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
|
|
|