annotate liboctave/config-ops.sh @ 14193:72aebe619641 stable rc-3-6-0-0

3.6.0-rc0 release candidate * configure.ac (AC_INIT): Version is now 3.6.0-rc0. (OCTAVE_RELEASE_DATE): Now 2012-01-10. (OCTAVE_API_VERSION_NUMBER): Now 47.
author John W. Eaton <jwe@octave.org>
date Tue, 10 Jan 2012 16:43:41 -0500
parents b67c2d580a25
children 08e48e7a4c8a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 #! /bin/sh
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3 set -e
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 : ${AWK=awk}
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6
10434
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
7 if [ $# -lt 3 ]; then
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
8 src_type="all"
10376
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
9 else
10434
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
10 src_type="$3"
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
11 fi
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
12
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
13 if [ $# -lt 2 ]; then
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
14 obj_type="all"
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
15 else
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
16 obj_type="$2"
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
17 fi
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
18
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
19 if [ $# -lt 1 ]; then
10376
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
20 top_srcdir=".."
10434
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
21 else
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
22 top_srcdir="$1"
10376
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
23 fi
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24
12733
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 10438
diff changeset
25 move_if_change="$top_srcdir/build-aux/move-if-change"
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 10438
diff changeset
26
10376
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
27 liboctave_dir="$top_srcdir/liboctave"
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28
10376
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
29 mk_ops="$liboctave_dir/mk-ops.awk"
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
30 sparse_mk_ops="$liboctave_dir/sparse-mk-ops.awk"
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31
10434
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
32 case "$obj_type" in
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
33 vx | all)
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
34 case "$src_type" in
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
35 inc | all)
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
36 VX_INC=$($AWK -f $mk_ops prefix=vx list_h_files=1 $liboctave_dir/vx-ops)
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
37 echo "VX_OP_INC = $(echo $VX_INC)" > $liboctave_dir/vx-op-inc.mk-t
12733
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 10438
diff changeset
38 $move_if_change $liboctave_dir/vx-op-inc.mk-t $liboctave_dir/vx-op-inc.mk
10434
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
39 ;;
10438
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
40 esac
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
41 ;;
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
42 esac
10376
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
43
10438
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
44 case "$obj_type" in
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
45 vx | all)
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
46 case "$src_type" in
10434
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
47 src | all)
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
48 VX_SRC=$($AWK -f $mk_ops prefix=vx list_cc_files=1 $liboctave_dir/vx-ops)
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
49 echo "VX_OP_SRC = $(echo $VX_SRC)" > $liboctave_dir/vx-op-src.mk-t
12733
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 10438
diff changeset
50 $move_if_change $liboctave_dir/vx-op-src.mk-t $liboctave_dir/vx-op-src.mk
10434
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
51 ;;
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
52 esac
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
53 ;;
10438
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
54 esac
10376
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
55
10438
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
56 case "$obj_type" in
10434
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
57 mx | all)
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
58 case "$src_type" in
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
59 inc | all)
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
60 MX_INC=$($AWK -f $mk_ops prefix=mx list_h_files=1 $liboctave_dir/mx-ops)
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
61 echo "MX_OP_INC = $(echo $MX_INC)" > $liboctave_dir/mx-op-inc.mk-t
12733
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 10438
diff changeset
62 $move_if_change $liboctave_dir/mx-op-inc.mk-t $liboctave_dir/mx-op-inc.mk
10434
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
63 ;;
10438
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
64 esac
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
65 ;;
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
66 esac
10376
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
67
10438
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
68 case "$obj_type" in
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
69 mx | all)
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
70 case "$src_type" in
10434
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
71 src | all)
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
72 MX_SRC=$($AWK -f $mk_ops prefix=mx list_cc_files=1 $liboctave_dir/mx-ops)
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
73 echo "MX_OP_SRC = $(echo $MX_SRC)" > $liboctave_dir/mx-op-src.mk-t
12733
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 10438
diff changeset
74 $move_if_change $liboctave_dir/mx-op-src.mk-t $liboctave_dir/mx-op-src.mk
10434
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
75 ;;
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
76 esac
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
77 ;;
10438
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
78 esac
10376
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
79
10438
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
80 case "$obj_type" in
10434
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
81 smx | all)
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
82 case "$src_type" in
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
83 inc | all)
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
84 SMX_INC=$($AWK -f $sparse_mk_ops prefix=smx list_h_files=1 $liboctave_dir/sparse-mx-ops)
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
85 echo "SMX_OP_INC = $(echo $SMX_INC)" > $liboctave_dir/smx-op-inc.mk-t
12733
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 10438
diff changeset
86 $move_if_change $liboctave_dir/smx-op-inc.mk-t $liboctave_dir/smx-op-inc.mk
10434
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
87 ;;
10438
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
88 esac
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
89 ;;
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
90 esac
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
91
10438
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
92 case "$obj_type" in
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
93 smx | all)
44538c4ff9d1 liboctave/config-ops.sh: handle 'all' case correctly
John W. Eaton <jwe@octave.org>
parents: 10434
diff changeset
94 case "$src_type" in
10434
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
95 src | all)
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
96 SMX_SRC=$($AWK -f $sparse_mk_ops prefix=smx list_cc_files=1 $liboctave_dir/sparse-mx-ops)
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
97 echo "SMX_OP_SRC = $(echo $SMX_SRC)" > $liboctave_dir/smx-op-src.mk-t
12733
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 10438
diff changeset
98 $move_if_change $liboctave_dir/smx-op-src.mk-t $liboctave_dir/smx-op-src.mk
10434
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
99 ;;
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
100 esac
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
101 ;;
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
102 esac
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
103
10434
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
104
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
105
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
106
f387c5b3a369 avoid problems if liboctave/config-ops.sh is run in parallel
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
107