autogen.sh: pass --force to autoreconf, quote ORIGDIR
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 9 Mar 2015 11:46:07 +0000 (11:46 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 11 Mar 2015 23:28:26 +0000 (23:28 +0000)
By passing --force autoreconf will update all the aux files, which would
otherwise be ignored if one updates autoconf/automake.

Quote the ORIGDIR variable to prevent fall-outs, when its name contains
space.

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

index 626d21334992a160241c02a78b0cb4dc7d5fceff..c8960971d248bce5a8d1f5fe149133bb498509ba 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 "$@"