]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
autogen.sh: rework to be more buildsystem friendly
authorColin Walters <walters@verbum.org>
Sun, 9 Oct 2011 19:54:15 +0000 (15:54 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 10 Oct 2011 13:16:10 +0000 (09:16 -0400)
One of the goals laid out in
http://people.gnome.org/~walters/docs/build-api.txt
is to get projects to have autogen.sh scripts that
don't invoke configure after generating it.

This commit does that along with some other small
modifications designed to help be more confromant
with the Build API referenced in the above url.

https://bugs.freedesktop.org/show_bug.cgi?id=41629

autogen.sh

index 00143b7727b1b486a3c7f4c309826f10f0fe4b80..2cbe399c182fd673f2c44837274307656eb48073 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/sh
 
-(cd $(dirname $0);
- autoreconf --install --symlink &&
- ./configure $@)
+cd $(dirname $0)
+autoreconf --install --symlink
+if test -z "$NOCONFIGURE"; then
+   exec ./configure $@
+fi