OSDN Git Service

autogen.sh: pass --force to autoreconf, quote string variables
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 9 Mar 2015 11:57:40 +0000 (11:57 +0000)
committerAdam Jackson <ajax@redhat.com>
Tue, 22 Sep 2015 12:46:52 +0000 (08:46 -0400)
By passing --force autoreconf will update all the aux files, which would
otherwise be ignored if one updates autoconf/automake.

Quote the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when
it contains space.

v2: Also handle $srcdir and $0.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
autogen.sh

index fc34bd5..81e182d 100755 (executable)
@@ -6,8 +6,8 @@ test -z "$srcdir" && srcdir=.
 ORIGDIR=`pwd`
 cd $srcdir
 
-autoreconf -v --install || exit 1
-cd $ORIGDIR || exit $?
+autoreconf --force --verbose --install || exit 1
+cd "$ORIGDIR" || exit $?
 
 if test -z "$NOCONFIGURE"; then
     $srcdir/configure "$@"