The following is an auto-regenerator script that is meant to rebuild the necessary make- and configuration files, then configure the project and finally make the project.
#!/bin/bash ########################################################################### ## Copyright (C) Wizardry and Steamworks 2005 - License: GNU GPLv3 ## ## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ## ## rights of fair usage, the disclaimer and warranty conditions. ## ########################################################################### # # this script will try to generate all the configuration tools and then # configure and compile a project. cnt=4 echo -en " +Cleaning source: " if test -f Makefile; then rm Makefile configure config.h echo "done" else echo "clean" fi until [ "$cnt" -lt 4 ]; do echo -en " +Running aclocal: " aclocal 2>/dev/null let cnt=cnt-1 done echo "done" until [ "$cnt" -lt 3 ]; do echo -en " +Running autoheader: " autoheader --force 2>/dev/null let cnt=cnt-1 done echo "done" until [ "$cnt" -lt 2 ]; do echo -en " +Generating makefiles: " automake --add-missing --copy --force-missing 2>/dev/null let cnt=cnt-1 done echo "done" until [ "$cnt" -lt 1 ]; do echo -en " +Generating configure script: " autoconf 2>/dev/null let cnt=cnt-1 done echo "done" echo -en " +Configure ready: " if test -f Makefile; then echo "no" else echo "yes" fi echo -en " +Configuring..." if test -x configure; then ./configure 2&>configure.log fi echo "done" echo -en " +Making: " if [ 'which make' != "" ]; then m=which make > make.log fi rm make.log echo "done"