root/tags/lgt2212/misc/make_gplgt.sh

Revision 1540, 1.0 KB (checked in by pmoura, 4 years ago)

Updated release number to 2.21.2.

  • 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.2
6##
7## Copyright (c) 1998-2004 Paulo Moura.  All Rights Reserved.
8## =================================================================
9
10echo
11echo "Creating a script named gplgt for running Logtalk with GNU 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    cp ../configs/gnu.config gnu.pl
29    echo ":- built_in." > logtalkgp.pl
30    cat ../compiler/logtalk.pl >> logtalkgp.pl
31    gplc -o gplgt gnu.pl logtalkgp.pl
32    chmod a+x gplgt
33    ln -sf $LOGTALKHOME/bin/gplgt $prefix/bin/gplgt
34    rm gnu.pl
35    rm logtalkgp.pl
36    echo "Done. A link to the script was been created in $prefix/bin."
37    echo "Users should define the environment variable LOGTALKHOME in"
38    echo "order to use the script."
39    echo
40fi
Note: See TracBrowser for help on using the browser.