File: swipl.sh.in

package info (click to toggle)
swi-prolog 7.2.3%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 84,180 kB
  • ctags: 45,684
  • sloc: ansic: 330,358; perl: 268,104; sh: 6,795; java: 4,904; makefile: 4,561; cpp: 4,153; ruby: 1,594; yacc: 843; xml: 82; sed: 12; sql: 6
file content (40 lines) | stat: -rw-r--r-- 781 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh

# Run pl from the development system (i.e.   after  the base system is
# compiled, but not yet  installed.  If   we  are  building using shared
# libraries we must set LD_LIBRARY_PATH to be able to find them.
#
# On some machines LD_LIBRARY_PATH is called different.  The configure
# variable DLLIBVAR holds its name.

bdir=@abs_top_builddir@
PLARCH=@PLARCH@
PL=@PL@
EXEEXT=@EXEEXT@
ldir=$bdir/../lib/$PLARCH
sep=":"

SWIPL_BOOT_FILE=$bdir/swipl.prc
export SWIPL_BOOT_FILE

if [ "@WINEPATHEXE@" != ":" ]; then
  lib="$(@WINEPATHEXE@ -w $lib)"
  sep=";"
fi

if [ "x$@DLLIBVAR@" = "x" ]; then
  @DLLIBVAR@=$ldir
else
  @DLLIBVAR@="$ldir$sep$@DLLIBVAR@"
fi
export @DLLIBVAR@

case "$1" in
  -C) cd "$2"
      shift
      shift
      ;;
   *) ;;
esac

$bdir/$PL$EXEEXT "$@"