Commit 32be8f30 authored by Bastien Nocera's avatar Bastien Nocera Committed by W. Michael Petullo

build: Fix running "autogen.sh" when srcdir != builddir

As is the default for jhbuild.

https://bugzilla.gnome.org/show_bug.cgi?id=784221Signed-off-by: 's avatarW. Michael Petullo <mike@flyn.org>
parent 73232464
#!/bin/sh
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
olddir=`pwd`
cd "$srcdir"
touch ChangeLog
gtkdocize || exit 1
......@@ -8,11 +14,14 @@ autoconf || exit 1
autoheader || exit 1
libtoolize --force || glibtoolize --force || exit 1
automake -a || exit 1
./configure --enable-maintainer-mode $* || exit 1
cd "$olddir"
test -n "$NOCONFIGURE" || "$srcdir/configure" --enable-maintainer-mode $@ || exit 1
# Now populate ChangeLog.
git log > ChangeLog
cat <<EOF >> ChangeLog
git log > "$srcdir/ChangeLog"
cat <<EOF >> "$srcdir/ChangeLog"
======================== Convert to Git-based ChangeLog ========================
= Please note that there is is a period where some changes were logged in the =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment