root/tags/lgt2210/misc/make_eclipselgt.sh

Revision 1460, 1.3 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 eclipselgt for running Logtalk with ECLiPSe..."
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 ":- pragma(system)." > logtalkeclipse.pl
29    echo ":- pragma(nodebug)." >> logtalkeclipse.pl
30    echo ":- ensure_loaded(library(toplevel))." >> logtalkeclipse.pl
31    echo ":- include('\$LOGTALKHOME/compiler/logtalk.pl')." >> logtalkeclipse.pl
32    echo ":- compile('\$LOGTALKHOME/configs/eclipseiso.config')." > logtalkeclipse.rc
33    echo ":- compile('\$LOGTALKHOME/bin/logtalkeclipse.pl')." >> logtalkeclipse.rc
34    echo "#/bin/sh" > eclipselgt
35    echo "eclipse -b \$LOGTALKHOME/bin/logtalkeclipse.rc" >> eclipselgt
36    chmod a+x eclipselgt
37    ln -sf $LOGTALKHOME/bin/eclipselgt $prefix/bin/eclipselgt
38    echo "Done. A link to the script was been created in $prefix/bin."
39    echo "Users should define the environment variable LOGTALKHOME in"
40    echo "order to use the script."
41    echo
42fi
Note: See TracBrowser for help on using the browser.