2012-08-26 07:11:53 +02:00
|
|
|
#!/bin/sh
|
2012-08-18 22:28:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
function makeMakefile()
|
|
|
|
{
|
2012-08-26 07:09:39 +02:00
|
|
|
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
|
|
|
|
2012-08-26 07:09:39 +02:00
|
|
|
echo 'PARAMS ='"$params"
|
2012-08-19 19:36:00 +02:00
|
|
|
echo
|
2012-08-26 07:09:39 +02:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2012-08-26 07:09:39 +02:00
|
|
|
|
|
|
|
makeMakefile "$@" > Makefile
|
2012-08-18 23:47:39 +02:00
|
|
|
|