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

Revision 22167, 1.8 KB 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-2?b? 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-prefix1"
13rm -rf $rp-prefix1
14mkdir $rp-prefix1
15
16tmpfiles="$tmpfiles $rp-prefix2"
17rm -rf $rp-prefix2
18mkdir $rp-prefix2
19
20tmpfiles="$tmpfiles $rp-prefix"
21rm -rf $rp-prefix
22mkdir $rp-prefix
23
24tmpfiles="$tmpfiles tstdir/$rp-build1"
25rm -rf tstdir/$rp-build1
26mkdir tstdir/$rp-build1
27(cd $srcdir/rpathx && tar cf - *) | (cd tstdir/$rp-build1 && tar xf -)
28(cd tstdir/$rp-build1
29 ${CONFIG_SHELL-/bin/sh} ./configure $build1_configure_flags --prefix=$builddir/$rp-prefix1 > configure.log 2>&1
30 make > make.log 2>&1
31 make install > install.log 2>&1
32)
33if test $remove_la = yes; then
34  rm -f $rp-prefix1/lib/librpathx.la
35fi
36
37tmpfiles="$tmpfiles tstdir/$rp-build2"
38rm -rf tstdir/$rp-build2
39mkdir tstdir/$rp-build2
40(cd $srcdir/rpathy && tar cf - *) | (cd tstdir/$rp-build2 && tar xf -)
41(cd tstdir/$rp-build2
42 ${CONFIG_SHELL-/bin/sh} ./configure $build2_configure_flags --prefix=$builddir/$rp-prefix2 --with-librpathx-prefix=$builddir/$rp-prefix1 > configure.log 2>&1
43 make > make.log 2>&1
44 make install > install.log 2>&1
45)
46if test $remove_la = yes; then
47  rm -f $rp-prefix2/lib/librpathy.la
48fi
49
50tmpfiles="$tmpfiles tstdir/$rp-build3"
51rm -rf tstdir/$rp-build3
52mkdir tstdir/$rp-build3
53(cd $srcdir/$build3_package && tar cf - *) | (cd tstdir/$rp-build3 && tar xf -)
54(cd tstdir/$rp-build3
55 if test $remove_la = yes; then
56   build3_configure_flags=--with-librpathx-prefix=$builddir/$rp-prefix1
57 else
58   build3_configure_flags=
59 fi
60 ${CONFIG_SHELL-/bin/sh} ./configure --prefix=$builddir/$rp-prefix --with-librpathy-prefix=$builddir/$rp-prefix2 $build3_configure_flags > configure.log 2>&1
61 make > make.log 2>&1
62 make check >> make.log
63)
64result=$?
65
66rm -rf $tmpfiles
67
68exit $result
Note: See TracBrowser for help on using the repository browser.