Mercurial > hg > octave-nkf
annotate bootstrap @ 15414:494f9bac8862
build: Rename autogen.sh script to bootstrap to conform to GNU guidelines.
* bootstrap: renamed from autogen.sh.
* autogen.sh: deleted.
* build-aux/bootstrap_gnulib: renamed from bootstrap.
* build-aux/bootstrap: deleted.
* build-aux/bootstrap_gnulib.conf: renamed from bootstrap.conf.
* build-aux/bootstrap.conf: deleted.
* Makefile.am: add bootstrap and bootstrap_gnulib to EXTRA_DIST.
* contrib.txi, HACKING, README.MacOS, README.MinGW, mx-ops, sparse-mx-ops,
vx-ops: Replace references to autogen.sh with bootstrap.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 18 Sep 2012 15:32:50 -0700 |
parents | autogen.sh@648dabbb4c6b |
children | b91fc9348e2e |
rev | line source |
---|---|
3298 | 1 #! /bin/sh |
15414
494f9bac8862
build: Rename autogen.sh script to bootstrap to conform to GNU guidelines.
Rik <rik@octave.org>
parents:
15271
diff
changeset
|
2 # bootstrap |
3298 | 3 # Run this to generate all the initial makefiles, etc. |
4 | |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
5 set -e |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
6 |
12158
a73df5341f3c
autogen.sh: check for required files instead of having automake do it
John W. Eaton <jwe@octave.org>
parents:
9946
diff
changeset
|
7 ## Use --foreign since we auto-generate the AUTHORS file and the default |
a73df5341f3c
autogen.sh: check for required files instead of having automake do it
John W. Eaton <jwe@octave.org>
parents:
9946
diff
changeset
|
8 ## --gnu strictness level doesn't like it if the AUTHORS file is missing. |
a73df5341f3c
autogen.sh: check for required files instead of having automake do it
John W. Eaton <jwe@octave.org>
parents:
9946
diff
changeset
|
9 |
a73df5341f3c
autogen.sh: check for required files instead of having automake do it
John W. Eaton <jwe@octave.org>
parents:
9946
diff
changeset
|
10 AUTOMAKE="automake --foreign --warnings=no-portability" |
a73df5341f3c
autogen.sh: check for required files instead of having automake do it
John W. Eaton <jwe@octave.org>
parents:
9946
diff
changeset
|
11 export AUTOMAKE |
a73df5341f3c
autogen.sh: check for required files instead of having automake do it
John W. Eaton <jwe@octave.org>
parents:
9946
diff
changeset
|
12 |
a73df5341f3c
autogen.sh: check for required files instead of having automake do it
John W. Eaton <jwe@octave.org>
parents:
9946
diff
changeset
|
13 ## Check for files that automake --gnu would normally look for, except |
a73df5341f3c
autogen.sh: check for required files instead of having automake do it
John W. Eaton <jwe@octave.org>
parents:
9946
diff
changeset
|
14 ## AUTHORS, which we autogenerate from the documentation files along with |
a73df5341f3c
autogen.sh: check for required files instead of having automake do it
John W. Eaton <jwe@octave.org>
parents:
9946
diff
changeset
|
15 ## building the rest of Octave, and INSTALL, which is linked from |
a73df5341f3c
autogen.sh: check for required files instead of having automake do it
John W. Eaton <jwe@octave.org>
parents:
9946
diff
changeset
|
16 ## gnulib/doc/INSTALL by the bootstrap script. |
a73df5341f3c
autogen.sh: check for required files instead of having automake do it
John W. Eaton <jwe@octave.org>
parents:
9946
diff
changeset
|
17 |
12624
83606de30dae
maint: generate ChangeLog automatically
John W. Eaton <jwe@octave.org>
parents:
12158
diff
changeset
|
18 for f in NEWS README COPYING; do |
12158
a73df5341f3c
autogen.sh: check for required files instead of having automake do it
John W. Eaton <jwe@octave.org>
parents:
9946
diff
changeset
|
19 if ! test -f $f; then |
a73df5341f3c
autogen.sh: check for required files instead of having automake do it
John W. Eaton <jwe@octave.org>
parents:
9946
diff
changeset
|
20 echo "required file $f is missing" 2>&1 |
a73df5341f3c
autogen.sh: check for required files instead of having automake do it
John W. Eaton <jwe@octave.org>
parents:
9946
diff
changeset
|
21 exit 1 |
a73df5341f3c
autogen.sh: check for required files instead of having automake do it
John W. Eaton <jwe@octave.org>
parents:
9946
diff
changeset
|
22 fi |
a73df5341f3c
autogen.sh: check for required files instead of having automake do it
John W. Eaton <jwe@octave.org>
parents:
9946
diff
changeset
|
23 done |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
24 |
15271
648dabbb4c6b
build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents:
15195
diff
changeset
|
25 echo "generating source lists for liboctave/operators/module.mk..." |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
26 |
15271
648dabbb4c6b
build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents:
15195
diff
changeset
|
27 (cd liboctave/operators; ./config-ops.sh) |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
28 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
29 echo "generating doc/interpreter/images.mk..." |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
30 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
31 (cd doc/interpreter; ./config-images.sh) |
3298 | 32 |
15195 | 33 echo "generating libinterp/dldfcn/module.mk..." |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
34 |
15195 | 35 (cd libinterp/dldfcn; ./config-module.sh) |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
36 |
9946 | 37 echo "bootstrapping..." |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
38 |
15414
494f9bac8862
build: Rename autogen.sh script to bootstrap to conform to GNU guidelines.
Rik <rik@octave.org>
parents:
15271
diff
changeset
|
39 build-aux/bootstrap_gnulib "$@" |
14185
d584f90d2c47
configure: search for gfortran first instead of g77
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
40 |
d584f90d2c47
configure: search for gfortran first instead of g77
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
41 ## G77 is obsolete, but it is still the first option in the autoconf Fortran |
d584f90d2c47
configure: search for gfortran first instead of g77
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
42 ## macros. We should avoid it, because mixing old versions of g77 with modern |
d584f90d2c47
configure: search for gfortran first instead of g77
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
43 ## gcc and g++ causes trouble. The following will make it harder (but not |
d584f90d2c47
configure: search for gfortran first instead of g77
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
44 ## impossible) for users to make this mistake. |
d584f90d2c47
configure: search for gfortran first instead of g77
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
45 ## |
d584f90d2c47
configure: search for gfortran first instead of g77
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
46 ## FIXME -- we should really work to fix autoconf so that it prefers gfortran |
d584f90d2c47
configure: search for gfortran first instead of g77
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
47 ## over g77 even when searching for a Fortran 77 compiler. |
d584f90d2c47
configure: search for gfortran first instead of g77
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
48 |
d584f90d2c47
configure: search for gfortran first instead of g77
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
49 echo "replacing all occurrences of g77 with gfortran in configure script..." |
d584f90d2c47
configure: search for gfortran first instead of g77
John W. Eaton <jwe@octave.org>
parents:
12733
diff
changeset
|
50 |
14191
5bb929d8b4f9
maint: ensure edited configure script is executable
John W. Eaton <jwe@octave.org>
parents:
14185
diff
changeset
|
51 sed 's/g77/gfortran/g' configure > configure.t |
5bb929d8b4f9
maint: ensure edited configure script is executable
John W. Eaton <jwe@octave.org>
parents:
14185
diff
changeset
|
52 mv configure.t configure |
5bb929d8b4f9
maint: ensure edited configure script is executable
John W. Eaton <jwe@octave.org>
parents:
14185
diff
changeset
|
53 chmod 755 configure |