Mercurial > hg > octave-lyh
comparison run-octave.in @ 9794:0d4613a736e9
convert build system to use automake and libtool
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 10 Nov 2009 15:02:25 -0500 |
parents | 16907d1153d1 |
children | e1a5bf3ea1d9 |
comparison
equal
deleted
inserted
replaced
9793:7161e9b41cf6 | 9794:0d4613a736e9 |
---|---|
28 # in these names? | 28 # in these names? |
29 | 29 |
30 top_srcdir='%abs_top_srcdir%' | 30 top_srcdir='%abs_top_srcdir%' |
31 builddir='%builddir%' | 31 builddir='%builddir%' |
32 | 32 |
33 ldpreloadsep="%ldpreloadsep%" | |
34 liboctinterp="$builddir/src/%liboctinterp%" | |
35 liboctave="$builddir/liboctave/%liboctave%" | |
36 libcruft="$builddir/libcruft/%libcruft%" | |
37 | |
38 d1="$top_srcdir/test" | 33 d1="$top_srcdir/test" |
39 d2="$top_srcdir/scripts" | 34 d2="$top_srcdir/scripts" |
40 d3="$builddir/scripts" | 35 d3="$builddir/scripts" |
41 d4="$builddir/src" | 36 d4="$builddir/src" |
42 | 37 |
51 d4_path=`echo "$d4_list" | $AWK '{ t = (s $0); s = t; } END { sub (/:$/, "", s); print s; }'` | 46 d4_path=`echo "$d4_list" | $AWK '{ t = (s $0); s = t; } END { sub (/:$/, "", s); print s; }'` |
52 | 47 |
53 LOADPATH="$d1_path:$d2_path:$d3_path:$d4_path" | 48 LOADPATH="$d1_path:$d2_path:$d3_path:$d4_path" |
54 IMAGEPATH="$top_srcdir/scripts/image" | 49 IMAGEPATH="$top_srcdir/scripts/image" |
55 DOCFILE="$builddir/doc/interpreter/doc-cache" | 50 DOCFILE="$builddir/doc/interpreter/doc-cache" |
56 INFOFILE="$builddir/doc/interpreter/octave.info" | 51 INFOFILE="$top_srcdir/doc/interpreter/octave.info" |
57 | 52 |
58 if [ $# -gt 0 ]; then | 53 if [ $# -gt 0 ]; then |
59 if [ "x$1" = "x-g" ]; then | 54 if [ "x$1" = "x-g" ]; then |
60 driver="gdb --args" | 55 driver="gdb --args" |
61 shift | 56 shift |
67 shift | 62 shift |
68 fi | 63 fi |
69 fi | 64 fi |
70 | 65 |
71 OCTAVE_SITE_INITFILE="$top_srcdir/scripts/startup/main-rcfile" \ | 66 OCTAVE_SITE_INITFILE="$top_srcdir/scripts/startup/main-rcfile" \ |
72 LD_PRELOAD="$libcruft$ldpreloadsep$liboctave$ldpreloadsep$liboctinterp" \ | 67 exec $builddir/libtool --mode=execute $driver \ |
73 %library_path_var%="$builddir/src:$builddir/liboctave:$builddir/libcruft:$%library_path_var%" \ | 68 "$builddir/src/octave" --no-init-path --path="$LOADPATH" \ |
74 exec $driver "$builddir/src/octave" --no-init-path --path="$LOADPATH" --image-path="$IMAGEPATH" --doc-cache-file="$DOCFILE" --info-file="$INFOFILE" "$@" | 69 --image-path="$IMAGEPATH" --doc-cache-file="$DOCFILE" \ |
75 | 70 --info-file="$INFOFILE" "$@" |