Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gdb6 / gdb / testsuite / gdb.hp / gdb.base-hp / so-thresh.sh
blob6b6d6ecc3cdb09e04e19f15400760b07eb324673
1 #!/bin/ksh
3 # so-thresh.sh
5 # This script is a "wrapper" to use the so-thresh.mk
6 # Makefile. See the comments in so-thresh.exp
7 # regarding why this script exists.
9 #set -o xtrace
10 #set -o verbose
12 if [ "$srcdir" = "${srcdir#/}" ]
13 then
14 srcdir="$PWD/$srcdir"
17 if [ "$objdir" = "${objdir#/}" ]
18 then
19 objdir="$PWD/$objdir"
22 subdir="$1"
24 HERE=$PWD
25 cd $subdir
27 MAKEFLAGS=
28 make -f ${srcdir}/${subdir}/so-thresh.mk clean require_shlibs all SRCDIR=${srcdir}/${subdir} OBJDIR=${objdir}/${subdir} > ${objdir}/${subdir}/so-thresh.make.out 2>&1
29 STATUS=$?
31 cd $HERE
32 echo "return STATUS is $STATUS"
34 exit $STATUS