comparison run-octave.in @ 6827:647cad232070

[project @ 2007-08-24 16:38:05 by jwe]
author jwe
date Fri, 24 Aug 2007 16:38:05 +0000
parents 4ba39e63b005
children deb175b6e4a1
comparison
equal deleted inserted replaced
6826:8618f29520c6 6827:647cad232070
15 d1="$top_srcdir/test" 15 d1="$top_srcdir/test"
16 d2="$top_srcdir/scripts" 16 d2="$top_srcdir/scripts"
17 d3="$builddir/scripts" 17 d3="$builddir/scripts"
18 d4="$builddir/src" 18 d4="$builddir/src"
19 19
20 d1_list=$(find "$d1" -type d -a ! \( \( -name CVS -o -name private \) -a -prune \) -exec echo '{}': ';') 20 d1_list=`find "$d1" -type d -a ! \( \( -name CVS -o -name private \) -a -prune \) -exec echo '{}': ';'`
21 d2_list=$(find "$d2" -type d -a ! \( \( -name CVS -o -name private \) -a -prune \) -exec echo '{}': ';') 21 d2_list=`find "$d2" -type d -a ! \( \( -name CVS -o -name private \) -a -prune \) -exec echo '{}': ';'`
22 d3_list=$(find "$d3" -type d -a ! \( \( -name CVS -o -name private \) -a -prune \) -exec echo '{}': ';') 22 d3_list=`find "$d3" -type d -a ! \( \( -name CVS -o -name private \) -a -prune \) -exec echo '{}': ';'`
23 d4_list=$(find "$d4" -type d -a ! \( \( -name CVS -o -name private \) -a -prune \) -exec echo '{}': ';') 23 d4_list=`find "$d4" -type d -a ! \( \( -name CVS -o -name private \) -a -prune \) -exec echo '{}': ';'`
24 24
25 d1_path=$(echo "$d1_list" | $AWK '{ t = (s $0); s = t; } END { sub (/:$/, "", s); print s; }') 25 d1_path=`echo "$d1_list" | $AWK '{ t = (s $0); s = t; } END { sub (/:$/, "", s); print s; }'`
26 d2_path=$(echo "$d2_list" | $AWK '{ t = (s $0); s = t; } END { sub (/:$/, "", s); print s; }') 26 d2_path=`echo "$d2_list" | $AWK '{ t = (s $0); s = t; } END { sub (/:$/, "", s); print s; }'`
27 d3_path=$(echo "$d3_list" | $AWK '{ t = (s $0); s = t; } END { sub (/:$/, "", s); print s; }') 27 d3_path=`echo "$d3_list" | $AWK '{ t = (s $0); s = t; } END { sub (/:$/, "", s); print s; }'`
28 d4_path=$(echo "$d4_list" | $AWK '{ t = (s $0); s = t; } END { sub (/:$/, "", s); print s; }') 28 d4_path=`echo "$d4_list" | $AWK '{ t = (s $0); s = t; } END { sub (/:$/, "", s); print s; }'`
29 29
30 LOADPATH="$d1_path:$d2_path:$d3_path:$d4_path" 30 LOADPATH="$d1_path:$d2_path:$d3_path:$d4_path"
31 IMAGEPATH="$top_srcdir/scripts/image" 31 IMAGEPATH="$top_srcdir/scripts/image"
32 INFOFILE="$builddir/doc/interperter/octave.info" 32 INFOFILE="$builddir/doc/interperter/octave.info"
33 33
34 args="--no-initial-path --path=\"$LOADPATH\" --image-path=\"$IMAGEPATH\" --info-file=\"$INFOFILE\"" 34 args="--no-initial-path --path=\"$LOADPATH\" --image-path=\"$IMAGEPATH\" --info-file=\"$INFOFILE\""
35 35
36 if [ $# -gt 0 ]; then 36 if [ $# -gt 0 ]; then
37 if [ "x$1" = "x-g" ]; then 37 if [ "x$1" = "x-g" ]; then
38 driver="gdb" 38 driver="gdb"
39 if [ $(/bin/pwd) = "$builddir" ]; then 39 if [ `/bin/pwd` = "$builddir" ]; then
40 sed "s|^set args.*$|set args $args|" .gdbinit > .gdbinit-tmp 40 sed "s|^set args.*$|set args $args|" .gdbinit > .gdbinit-tmp
41 mv .gdbinit-tmp .gdbinit 41 mv .gdbinit-tmp .gdbinit
42 fi 42 fi
43 args="" 43 args=""
44 shift 44 shift