root/tags/lgt2210/scripts/make_sicstuslgt.sh

Revision 1460, 1.1 KB (checked in by pmoura, 4 years ago)

Updated release number to 2.21.0.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1#! /bin/sh
2
3## =================================================================
4## Logtalk - Object oriented extension to Prolog
5## Release 2.21.0
6##
7## Copyright (c) 1998-2004 Paulo Moura.  All Rights Reserved.
8## =================================================================
9
10echo
11echo "Creating a script named sicstuslgt for running Logtalk with SICStus Prolog..."
12
13if ! [ $LOGTALKHOME ]
14then
15    echo "The environment variable LOGTALKHOME must be defined first!"
16else
17    cd $LOGTALKHOME
18    if [ -z "$1" ]; then
19        prefix=/usr/local
20    else
21        prefix="$1"
22    fi
23    if ! [ -d bin ]
24    then
25        mkdir bin
26    fi
27    cd bin
28    echo ":- compile('\$LOGTALKHOME/configs/sicstus.config')." > logtalksicstus.rc
29    echo ":- compile('\$LOGTALKHOME/compiler/logtalk.pl')." >> logtalksicstus.rc
30
31    echo "#/bin/sh" > sicstuslgt
32    echo "sicstus -l \$LOGTALKHOME/bin/logtalksicstus.rc" >> sicstuslgt
33    chmod a+x sicstuslgt
34    ln -sf $LOGTALKHOME/bin/sicstuslgt $prefix/bin/sicstuslgt
35    echo "Done. A link to the script was been created in $prefix/bin."
36    echo "Users should define the environment variable LOGTALKHOME in"
37    echo "order to use the script."
38    echo
39fi
Note: See TracBrowser for help on using the browser.