From: Jilles Tjoelker Date: Sun, 8 Feb 2009 20:09:29 +0000 (+0100) Subject: autogen.sh is not necessary at this time, and did not work anyway. X-Git-Tag: charybdis-3.1.0~3 X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/commitdiff_plain/377b98f0794834938a3fc1e5959236a7927d19d7 autogen.sh is not necessary at this time, and did not work anyway. --- diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index 9830475..0000000 --- a/autogen.sh +++ /dev/null @@ -1,87 +0,0 @@ -#! /bin/sh - -TOP_DIR=$(dirname $0) -LAST_DIR=$PWD - -if test ! -f $TOP_DIR/configure.ac ; then - echo "You must execute this script from the top level directory." - exit 1 -fi - -AUTOCONF=${AUTOCONF:-autoconf} -AUTOHEADER=${AUTOHEADER:-autoheader} -AUTOMAKE=${AUTOMAKE:-automake} - -dump_help_screen () -{ - echo "Usage: $0 [options]" - echo - echo "options:" - echo " -h,--help show this help screen" - echo - exit 0 -} - -parse_options () -{ - while test "$1" != "" ; do - case $1 in - -h|--help) - dump_help_screen - ;; - *) - echo Invalid argument - $1 - dump_help_screen - ;; - esac - shift - done -} - -run_or_die () -{ - COMMAND=$1 - - # check for empty commands - if test -z "$COMMAND" ; then - echo "*warning* no command specified" - return 1 - fi - - shift; - - OPTIONS="$@" - - # print a message - echo -n "*info* running $COMMAND" - if test -n "$OPTIONS" ; then - echo " ($OPTIONS)" - else - echo - fi - - # run or die - $COMMAND $OPTIONS ; RESULT=$? - if test $RESULT -ne 0 ; then - echo "*error* $COMMAND failed. (exit code = $RESULT)" - exit 1 - fi - - return 0 -} - -parse_options "$@" - -cd $TOP_DIR - -run_or_die $AUTOHEADER -run_or_die $AUTOCONF -run_or_die $AUTOMAKE - -cd $TOP_DIR/libratbox - -run_or_die $AUTOHEADER -run_or_die $AUTOCONF -run_or_die $AUTOMAKE - -cd $LAST_DIR