#!/bin/sh echo echo "====================================" echo "This script is for maintainers only!" echo "====================================" echo here="`pwd`" path_to_configure=`echo "$0" | sed 's%/[^/]*$%%g;'` if [ "X$path_to_configure" != "X." ]; then echo echo "Warning: You have called 'rebuild' from another directory." echo " Whole library will be builded here" echo fi export CFLAGS="-Wall -O2" rm -f config.h configure config.cache aclocal.m4 config.log stamp-h* rm -f Makefile src/Makefile rm -rf src/.deps/ rm -f src/*.o echo "running autoheader" \ && cd "$path_to_configure" \ && autoheader \ && echo running aclocal \ && aclocal \ && echo running autoconf \ && autoconf \ && cd "$here" \ && echo "running $path_to_configure/configure" \ && $path_to_configure/configure $* \ && make clean \ && make echo echo "====================================" echo "This script is for maintainers only!" echo "====================================" echo