root/tags/lgt2202/scripts/lgt_install.sh

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

Updated Logtalk release number to 2.20.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.20.2
6##
7## Copyright (c) 1998-2004 Paulo Moura.  All Rights Reserved.
8## =================================================================
9
10echo
11echo "Installing Logtalk..."
12
13if [ -z "$1" ]; then
14    prefix=/usr/local
15else
16    prefix="$1"
17fi
18
19rm -rf $prefix/lgt2201
20rm -f $prefix/logtalk
21
22mkdir $prefix/lgt2201
23
24cd ..
25cp -R * $prefix/lgt2201
26
27cd $prefix
28chmod -R go-w,a+r lgt2201
29chmod a+x lgt2201
30chmod a+x lgt2201/misc/*.sh
31chmod a+x lgt2201/xml/*.sh
32ln -sf lgt2201 logtalk
33
34cd bin
35ln -sf ../lgt2201/misc/cplgtdirs.sh cplgtdirs
36ln -sf ../lgt2201/xml/lgt2pdf.sh lgt2pdf
37ln -sf ../lgt2201/xml/lgt2html.sh lgt2html
38
39echo "Logtalk installation completed."
40echo
41echo "Users should define the environment variable LOGTALKHOME pointing"
42echo "to $prefix/logtalk and then run the shell script cplgtdirs in"
43echo "order to make a local copy of the Logtalk examples, library, and"
44echo "xml directories in ~/logtalk."
45echo
Note: See TracBrowser for help on using the browser.