23 lines
498 B
Plaintext
23 lines
498 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
autoreconf -fvi
|
||
|
|
||
|
if [ ! -z "$1" ]; then
|
||
|
if [ -f "Makefile" ]; then
|
||
|
make clean
|
||
|
fi
|
||
|
if [ "$1" == "all" ]; then
|
||
|
./configure && make
|
||
|
elif [ "$1" == "check" ]; then
|
||
|
./configure && make check
|
||
|
elif [ "$1" == "debug" ]; then
|
||
|
./configure --enable-debug && make
|
||
|
elif [ "$1" == "ready" ]; then
|
||
|
if ./configure && make check && make distcheck; then
|
||
|
echo -e "\n\e[0;32mReady for distribution\e[m"
|
||
|
else
|
||
|
echo -e "\n\e[0;31mSome errors detected!\e[m"
|
||
|
fi
|
||
|
fi
|
||
|
fi
|