~ubuntu-branches/ubuntu/raring/babel/raring-proposed

« back to all changes in this revision

Viewing changes to regression/strings/runJava/runJava2F77.sh.in

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2008-08-01 07:56:58 UTC
  • mfrom: (3.1.2 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080801075658-9ezcrbh8dcs8lg70
Tags: 1.2.0.dfsg-6
Added libparsifal-dev as dependency to libsidl-dev (closes: #483324).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
## File:        runJava2F77.in
3
3
## Package:     Babel regression tests
4
 
## Revision:    $Revision: 4434 $
5
 
## Modified:    $Date: 2005-03-17 09:05:29 -0800 (Thu, 17 Mar 2005) $
 
4
## Revision:    $Revision: 6045 $
 
5
## Modified:    $Date: 2007-06-20 08:15:06 -0700 (Wed, 20 Jun 2007) $
6
6
## Description: script to run Java calling F77 regression test
7
 
##
8
 
## Copyright (c) 2000-2002, The Regents of the University of Calfornia.
 
7
## Generated automatically by babel/regression/genrunjava.py
 
8
#
 
9
## Copyright (c) 2000-2004, The Regents of the University of Calfornia.
9
10
## Produced at the Lawrence Livermore National Laboratory.
10
11
## Written by the Components Team <components@llnl.gov>
11
12
## UCRL-CODE-2002-054
29
30
## along with this program; if not, write to the Free Software Foundation,
30
31
## Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31
32
 
32
 
prefix=@prefix@
33
 
exec_prefix=@exec_prefix@
34
 
bindir=@bindir@
35
 
libdir=@libdir@
 
33
# limit CPU time to 5 minutes
 
34
ulimit -t 300
 
35
prefix="@prefix@"
 
36
exec_prefix="@exec_prefix@"
 
37
bindir="@bindir@"
 
38
libdir="@libdir@"
36
39
JAVA="@JAVA@"
 
40
VERSION="@VERSION@"
37
41
 
38
42
case "`uname`" in
39
43
  CYGWIN*) cygwin=true;;
41
45
esac
42
46
 
43
47
if test -f stamp-installcheck; then
44
 
  CLASSPATH="${prefix}/lib/sidl-@VERSION@.jar:."
45
 
  SIDL_DLL_PATH="libClient.scl;../libF77/libImpl.scl;${libdir}/libsidl.scl;../../output/libC/libOutput.scl"
 
48
  CLASSPATH="${libdir}/sidl-${VERSION}.jar:${libdir}/sidlstub_${VERSION}.jar:."
 
49
  SIDL_DLL_PATH="libClient.scl;../libF77/libImpl.scl;${libdir}/libsidl.scl;../../output/libC/libOutput.scl;${libdir}/libsidlstub_java.scl"
46
50
  if $cygwin; then
47
51
    JAVA_LIBRARY_PATH="${bindir}"
48
52
  else
49
53
    JAVA_LIBRARY_PATH="${libdir}"
50
54
  fi
 
55
  @SHARED_LIB_VAR@="${libdir}:${@SHARED_LIB_VAR@}"
51
56
else
52
 
  CLASSPATH=../../../lib/sidl-@VERSION@.jar:.
53
 
  SIDL_DLL_PATH="libClient.scl;../libF77/libImpl.scl;../../../runtime/sidl/libsidl.scl;../../output/libC/libOutput.scl"
 
57
  CLASSPATH=../../../lib/sidl-${VERSION}.jar:../../../lib/sidlstubs/Java/sidlstub_${VERSION}.jar:.
 
58
  SIDL_DLL_PATH="libClient.scl;../libF77/libImpl.scl;../../../runtime/sidl/libsidl.scl;../../output/libC/libOutput.scl;../../../lib/sidlstubs/Java/libsidlstub_java.scl"
54
59
  JAVA_LIBRARY_PATH=../../../runtime/sidl/.libs
 
60
  @SHARED_LIB_VAR@="../../../runtime/sidl/.libs:../../../runtime/libparsifal/src/.libs:../../../runtime/sidlx/.libs:../../../lib/sidlstubs/F77/.libs:${@SHARED_LIB_VAR@}"
55
61
fi
56
 
sidl_LIBRARY_NAME=sidl
 
62
export @SHARED_LIB_VAR@
 
63
SIDL_LIBRARY_NAME=sidl
57
64
 
58
65
if $cygwin; then
59
66
  CLASSPATH=`cygpath --path --windows "${CLASSPATH}"`
60
67
  JAVA_LIBRARY_PATH=`cygpath --path --windows "${JAVA_LIBRARY_PATH}"`
61
 
  sidl_LIBRARY_NAME=cygsidl-`echo @VERSION@ | tr . -`
 
68
  SIDL_LIBRARY_NAME=cygsidl-`echo ${VERSION} | tr . -`
62
69
fi
63
70
export SIDL_DLL_PATH;
64
71
export CLASSPATH
65
72
 
66
73
${JAVA} \
67
74
  -Djava.library.path="${JAVA_LIBRARY_PATH}" \
68
 
  -Dsidl.library.name="${sidl_LIBRARY_NAME}" \
 
75
  -Dsidl.library.name="${SIDL_LIBRARY_NAME}" \
69
76
  StringTest
 
77
exit $?
 
78