autogen.sh: Clean up syntax

Standardize all variable names to be upper case.
Move 'cd' command to improve readability.
Hamlib-3.0
Nate Bargmann 2012-09-25 14:40:42 -05:00
rodzic 21e59a67eb
commit 59d1e3317b
1 zmienionych plików z 8 dodań i 4 usunięć

Wyświetl plik

@ -13,12 +13,14 @@ LIBTOOLIZE=libtoolize
AUTOCONF=autoconf
AUTOMAKE=automake
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
# variables below this line should not need modification
SRCDIR=`dirname $0`
test -z "$SRCDIR" && SRCDIR=.
ORIGDIR=`pwd`
cd $srcdir
PROJECT=hamlib
TEST_TYPE=-f
FILE=include/hamlib/rig.h
@ -49,6 +51,8 @@ if test "$DIE" -eq 1; then
exit 1
fi
cd $SRCDIR
test $TEST_TYPE $FILE || {
echo "You must run this script in the top-level $PROJECT directory"
exit 1
@ -73,4 +77,4 @@ if test -z "$*"; then
echo "to pass any to it, please specify them on the $0 command line."
fi
$srcdir/configure --enable-maintainer-mode "$@"
$SRCDIR/configure --enable-maintainer-mode "$@"