Werner Lemberg | b0db0fc | 2005-03-05 17:05:35 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
Werner Lemberg | 60a04df | 2005-06-04 23:04:30 +0000 | [diff] [blame] | 3 | # Copyright 2005 by |
| 4 | # David Turner, Robert Wilhelm, and Werner Lemberg. |
| 5 | # |
| 6 | # This file is part of the FreeType project, and may only be used, modified, |
| 7 | # and distributed under the terms of the FreeType project license, |
| 8 | # LICENSE.TXT. By continuing to use, modify, or distribute this file you |
| 9 | # indicate that you have read the license and understand and accept it |
| 10 | # fully. |
| 11 | |
Werner Lemberg | b0db0fc | 2005-03-05 17:05:35 +0000 | [diff] [blame] | 12 | run () |
| 13 | { |
| 14 | echo "running \`$*'" |
| 15 | eval $* |
| 16 | |
| 17 | if test $? != 0 ; then |
| 18 | echo "error while running \`$*'" |
| 19 | exit 1 |
| 20 | fi |
| 21 | } |
| 22 | |
| 23 | if test ! -f ./builds/unix/configure.ac; then |
| 24 | echo "You must be in the same directory as \`autogen.sh'." |
| 25 | echo "Bootstrapping doesn't work if srcdir != builddir." |
| 26 | exit 1 |
| 27 | fi |
| 28 | |
| 29 | cd builds/unix |
| 30 | |
Werner Lemberg | 1ea53e8 | 2005-04-13 18:12:36 +0000 | [diff] [blame] | 31 | run aclocal -I . --force |
Werner Lemberg | b0db0fc | 2005-03-05 17:05:35 +0000 | [diff] [blame] | 32 | run libtoolize --force --copy |
Werner Lemberg | 1ea53e8 | 2005-04-13 18:12:36 +0000 | [diff] [blame] | 33 | run autoconf --force |
Werner Lemberg | b0db0fc | 2005-03-05 17:05:35 +0000 | [diff] [blame] | 34 | |
| 35 | chmod +x mkinstalldirs |
| 36 | chmod +x install-sh |
| 37 | |
| 38 | cd ../.. |
| 39 | |
| 40 | chmod +x ./configure |
| 41 | |
| 42 | # EOF |