diff options
author | Ryan Lortie <desrt@desrt.ca> | 2010-07-29 16:36:20 +0200 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2010-07-29 16:36:20 +0200 |
commit | ec67cdcfbd0aa2a4eb13bd65f2a258b3c2fb8579 (patch) | |
tree | c2e20dd59333a686a7b4983821574b467968eed8 /autogen.sh | |
parent | 66b80a34b4cf0a8801e44ffdac173bbe11bbf1b1 (diff) | |
download | dconf-ec67cdcfbd0aa2a4eb13bd65f2a258b3c2fb8579.tar.gz |
fix autogen.sh
If automake-1.11 existed, we would run that but not also aclocal-1.11.
Ensure that we always run matching aclocal and automake.
Also some small fixups:
- use #!/bin/sh, not bash
- silence the error in case we can't find 'automake-1.11'.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -e @@ -8,16 +8,16 @@ if [ "$1" = "clean" ]; then exit fi -if automake-1.11 --version > /dev/null; then - automake=automake-1.11 +if automake-1.11 --version &> /dev/null; then + automake_suffix='-1.11' else - automake=automake + automake_suffix='' fi mkdir -p m4 aux gtkdocize --docdir docs --flavour no-tmpl -aclocal ${ACLOCAL_FLAGS} -${automake} --add-missing --foreign +aclocal${automake_suffix} ${ACLOCAL_FLAGS} +automake${automake_suffix} --add-missing --foreign autoconf CFLAGS=${CFLAGS=-ggdb -Werror} |