mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-25 13:57:59 +01:00
22 lines
451 B
Bash
Executable file
22 lines
451 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' 'install' 'uninstall' 'uninstall-old' 'clean' 'clean-old' 'view'); do
|
|
echo -e "$func"':\n\t./setup.py $(PARAMS) '"$func"'\n'
|
|
done
|
|
}
|
|
|
|
|
|
makeMakefile "$@" > Makefile
|
|
|