Allow to build out of source directory
authorDaniel Narvaez <dwnarvaez@gmail.com>
Thu, 19 Jul 2012 20:12:04 +0000 (22:12 +0200)
committerMike Gorse <mgorse@suse.com>
Mon, 6 Aug 2012 20:49:47 +0000 (15:49 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=680280

autogen.sh

index 3179c3f..1848e54 100755 (executable)
@@ -1,9 +1,11 @@
 #!/bin/sh
 # Run this to generate all the initial makefiles, etc.
 
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
 #name of package
 PKG_NAME=${PKG_NAME:-Package}
-srcdir=${srcdir:-.}
 
 # default version requirements ...
 REQUIRED_AUTOCONF_VERSION=${REQUIRED_AUTOCONF_VERSION:-2.53}