]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.hp/gdb.base-hp/so-thresh.sh
* configure.ac: Move comment to remove extra space in last argument
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.hp / gdb.base-hp / so-thresh.sh
1 #!/bin/ksh
2
3 # so-thresh.sh
4 #
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.
8
9 #set -o xtrace
10 #set -o verbose
11
12 if [ "$srcdir" = "${srcdir#/}" ]
13 then
14 srcdir="$PWD/$srcdir"
15 fi
16
17 if [ "$objdir" = "${objdir#/}" ]
18 then
19 objdir="$PWD/$objdir"
20 fi
21
22 subdir="$1"
23
24 HERE=$PWD
25 cd $subdir
26
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=$?
30
31 cd $HERE
32 echo "return STATUS is $STATUS"
33
34 exit $STATUS