This repository has been archived on 2021-03-01. You can view files and clone it, but cannot push or open issues or pull requests.
prpa/bootstrap

23 lines
498 B
Bash
Executable File

#!/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