]> cygwin.com Git - cygwin-apps/setup.git/blob - bootstrap.sh
e074507f8b002882e7f960671aa60ca1f0a9c639
[cygwin-apps/setup.git] / bootstrap.sh
1 #! /bin/sh
2 # Used to setup the configure.in, autoheader and Makefile.in's if configure
3 # has not been generated. This script is only needed for developers when
4 # configure has not been run, or if a Makefile.am in a non-configured directory
5 # has been updated
6
7
8 bootstrap() {
9 if "$@"; then
10 true # Everything OK
11 else
12 echo "$1 failed"
13 echo "Autotool bootstrapping failed. You will need to investigate and correct" ;
14 echo "before you can develop on this source tree"
15 exit 1
16 fi
17 }
18
19 # Make sure we are running in the right directory
20 if [ ! -f cygpackage.cc ]; then
21 echo "You must run this script from the directory containing it"
22 exit 1
23 fi
24
25 # Run bootstrap in required subdirs, iff it has not yet been run
26 if [ ! -f libgetopt++/configure ]; then
27 echo "Running bootstrap.sh in libgetopt++"
28 (
29 cd libgetopt++
30 ./bootstrap.sh
31 )
32 echo "Continuing with bootstrap in current directory"
33 fi
34
35 # Make sure cfgaux exists
36 mkdir -p cfgaux
37
38 # Bootstrap the autotool subsystems
39 bootstrap aclocal
40 # bootstrap autoheader
41 bootstrap libtoolize --automake
42 bootstrap autoconf
43 bootstrap automake --foreign --add-missing
44
45 echo "Autotool bootstrapping complete."
This page took 0.035788 seconds and 4 git commands to generate.