ponysay/configure

23 lines
451 B
Text
Raw Normal View History

2012-08-26 07:11:53 +02:00
#!/bin/sh
2012-08-18 22:28:17 +02:00
function makeMakefile()
{
params=''
for arg in "$@"; do
params="$params '$(echo $arg | sed -e "s/'/'\\''/g")'"
2012-08-18 22:49:34 +02:00
done
2012-08-20 18:53:00 +02:00
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'
2012-08-18 23:47:39 +02:00
done
2012-08-18 22:28:17 +02:00
}
makeMakefile "$@" > Makefile
2012-08-18 23:47:39 +02:00