source: trunk/third/gettext2/autoconf-lib-link/tests/rpath-1 @ 22167

Revision 22167, 990 bytes checked in by ghudson, 19 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r22166, which included commits to RCS files with non-trunk default branches.
Line 
1# Common portion of all rpath-1* tests.
2
3tmpfiles=""
4trap 'rm -fr $tmpfiles' 1 2 3 15
5
6builddir=`pwd`
7global_top_auxdir=`cd "$top_srcdir"/config && pwd`
8export global_top_auxdir
9
10test -d tstdir || mkdir tstdir
11
12tmpfiles="$tmpfiles $rp-prefix"
13rm -rf $rp-prefix
14mkdir $rp-prefix
15
16tmpfiles="$tmpfiles tstdir/$rp-build1"
17rm -rf tstdir/$rp-build1
18mkdir tstdir/$rp-build1
19(cd $srcdir/rpathx && tar cf - *) | (cd tstdir/$rp-build1 && tar xf -)
20(cd tstdir/$rp-build1
21 ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix > configure.log 2>&1
22 make > make.log 2>&1
23 make install > install.log 2>&1
24)
25
26tmpfiles="$tmpfiles tstdir/$rp-build2"
27rm -rf tstdir/$rp-build2
28mkdir tstdir/$rp-build2
29(cd $srcdir/rpathlx && tar cf - *) | (cd tstdir/$rp-build2 && tar xf -)
30(cd tstdir/$rp-build2
31 ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix > configure.log 2>&1
32 make > make.log 2>&1
33 make check >> make.log
34)
35result=$?
36
37rm -rf $tmpfiles
38
39exit $result
Note: See TracBrowser for help on using the repository browser.