root/tags/lgt2210/misc/lgt_install.sh

Revision 1490, 1.0 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 "Installing Logtalk..."
12
13if [ -z "$1" ]; then
14    prefix=/usr/local
15else
16    prefix="$1"
17fi
18
19rm -rf $prefix/lgt2210
20rm -f $prefix/logtalk
21
22mkdir $prefix/lgt2210
23
24cd ..
25cp -R * $prefix/lgt2210
26
27cd $prefix
28chmod -R go-w,a+r lgt2210
29chmod a+x lgt2210
30chmod a+x lgt2210/misc/*.sh
31chmod a+x lgt2210/xml/*.sh
32ln -sf lgt2210 logtalk
33
34cd bin
35ln -sf ../lgt2210/misc/cplgtdirs.sh cplgtdirs
36ln -sf ../lgt2210/xml/lgt2pdf.sh lgt2pdf
37ln -sf ../lgt2210/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.