Logtalk 2.20.1 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1117 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
15b122b2c9
commit
0018e82503
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@ -49,12 +49,12 @@ execution path.
|
||||
|
||||
If you use a csh shell, add the following line to your ~/.cshrc file:
|
||||
|
||||
setenv LOGTALKHOME /your/installation/directory/lgt2200
|
||||
setenv LOGTALKHOME /your/installation/directory/lgt2201
|
||||
setenv PATH $PATH:$LOGTALKHOME/xml:$LOGTALKHOME/misc
|
||||
|
||||
If you use a bash shell, add the following lines to your ~/.profile file:
|
||||
|
||||
LOGTALKHOME=/your/installation/directory/lgt2200
|
||||
LOGTALKHOME=/your/installation/directory/lgt2201
|
||||
export LOGTALKHOME
|
||||
PATH=$PATH:$LOGTALKHOME/xml:$LOGTALKHOME/misc
|
||||
export PATH
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@ -10,6 +10,23 @@ RELEASE NOTES
|
||||
=============
|
||||
|
||||
|
||||
2.20.1 - August 19, 2004
|
||||
|
||||
Added Windows JScript scripts for easy integration of Logtalk with CIAO and
|
||||
GNU Prolog.
|
||||
|
||||
Added encoding attribute (set to UTF-8) to the xsl:output tag in the
|
||||
lgtxml.xsl, lgthtml.xsl, and lgtxhtml.xsl files.
|
||||
|
||||
Replaced the Windows JScript scripts lgt2pdf.js and lgt2html.js by their
|
||||
final versions (the wrong ones shipped with Logtalk version 2.20.0).
|
||||
|
||||
Updated the "errors" example to illustrate possible conflict errors when
|
||||
using the uses/2 directive.
|
||||
|
||||
Updated the RPM logtalk.spec file to use the .tgz archive extension.
|
||||
|
||||
|
||||
2.20.0 - August 16, 2004
|
||||
|
||||
Added support for the uses/2 predicate directive (whose semantics is similar
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -47,4 +47,16 @@
|
||||
[ccredef],
|
||||
[unknown(warning), misspelt(warning), singletons(warning), plredef(warning), lgtredef(warning), report(on)]),
|
||||
_,
|
||||
true),
|
||||
catch(
|
||||
logtalk_load(
|
||||
[usesrepeated],
|
||||
[unknown(warning), misspelt(warning), singletons(warning), plredef(warning), lgtredef(warning), report(on)]),
|
||||
_,
|
||||
true),
|
||||
catch(
|
||||
logtalk_load(
|
||||
[usesconflict],
|
||||
[unknown(warning), misspelt(warning), singletons(warning), plredef(warning), lgtredef(warning), report(on)]),
|
||||
_,
|
||||
true))).
|
||||
|
10
Logtalk/examples/errors/usesconflict.lgt
Normal file
10
Logtalk/examples/errors/usesconflict.lgt
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
:-object(usesconflict).
|
||||
|
||||
:- uses(list, [member/2]).
|
||||
|
||||
member(H, [H| _]).
|
||||
member(H, [_| T]) :-
|
||||
member(H, T).
|
||||
|
||||
:- end_object.
|
7
Logtalk/examples/errors/usesrepeated.lgt
Normal file
7
Logtalk/examples/errors/usesrepeated.lgt
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
:-object(usesrepeated).
|
||||
|
||||
:- uses(list, [member/2]).
|
||||
:- uses(set, [member/2]).
|
||||
|
||||
:- end_object.
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
|
||||
<title>Logtalk 2.20.0 Documentation</title>
|
||||
<title>Logtalk 2.20.1 Documentation</title>
|
||||
<link rel="stylesheet" href="styles.css" type="text/css" />
|
||||
</head>
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<h1>Logtalk 2.20.0 Documentation</h1>
|
||||
<h1>Logtalk 2.20.1 Documentation</h1>
|
||||
|
||||
<ul>
|
||||
<li><h2><a href="userman/index.html">User Manual</a></h2></li>
|
||||
@ -37,7 +37,7 @@ Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p><span class="bleft"><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span><span class="bright">Last updated on: August 14, 2004</span></p>
|
||||
<p><span class="bleft"><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span><span class="bright">Last updated on: August 19, 2004</span></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
@ -86,6 +86,7 @@
|
||||
<dt><a name="objects_relationships" href="objects.html#relationships">Object relationships</a></dt>
|
||||
<dt><a name="objects_properties" href="objects.html#properties">Object properties</a></dt>
|
||||
<dt><a name="objects_user" href="objects.html#user">The pseudo-object user</a></dt>
|
||||
<dt><a name="objects_debugger" href="objects.html#debugger">The pseudo-object debugger</a></dt>
|
||||
</dl>
|
||||
|
||||
<h2><a name="protocols" href="protocols.html">Protocols</a></h2>
|
||||
@ -258,7 +259,7 @@ Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p><span class="bleft"><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span><span class="bright">Last updated on: August 14, 2004</span></p>
|
||||
<p><span class="bleft"><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span><span class="bright">Last updated on: August 19, 2004</span></p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -60,11 +60,10 @@ The Macintosh version is included in the file <code>lgt2xxx.sit</code>, a StuffI
|
||||
<h4>MacOS X, BSD, Linux, Unix</h4>
|
||||
|
||||
<p>
|
||||
The MacOS X/BSD/Linux/Unix version is included in the file <code>lgt2xxx.tar.gz</code>. In order to decompress and install the system you may use the following commands:
|
||||
The MacOS X/BSD/Linux/Unix version is included in the file <code>lgt2xxx.tgz</code>. In order to decompress and install the system you may use the following commands:
|
||||
</p>
|
||||
<pre>
|
||||
% gunzip lgt2xxx.tar.gz
|
||||
% tar -xvf lgt2xxx.tar
|
||||
% tar -zxvf lgt2xxx.tgz
|
||||
</pre>
|
||||
<p>
|
||||
This will create a sub-directory named <code>lgt2xxx</code> in your current directory.
|
||||
@ -181,7 +180,7 @@ Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p><span class="bleft"><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span><span class="bright">Last updated on: August 14, 2004</span></p>
|
||||
<p><span class="bleft"><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span><span class="bright">Last updated on: August 17, 2004</span></p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -441,10 +441,10 @@ An object may have the property <code>static</code>, <code>dynamic</code>, or <c
|
||||
<h2>The pseudo-object user<a name="user"></a></h2>
|
||||
|
||||
<p>
|
||||
Logtalk defines a pseudo-object named <code>user</code> which contains all user predicate definitions not contained in a Logtalk entity. These predicates are assumed to be implicitly declared public.
|
||||
Logtalk defines a pseudo-object named <code>user</code> which contains all user predicate definitions not encapsulated in a Logtalk entity. These predicates are assumed to be implicitly declared public.
|
||||
</p>
|
||||
|
||||
<h2>The pseudo-object debugger<a name="user"></a></h2>
|
||||
<h2>The pseudo-object debugger<a name="debugger"></a></h2>
|
||||
|
||||
<p>
|
||||
Logtalk defines a pseudo-object named <code>debugger</code> which implements the Logtalk built-in debugger (see the section <a href="running.html#debugging">Debugging Logtalk programs</a>).
|
||||
@ -459,7 +459,7 @@ Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p><span class="bleft"><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span><span class="bright">Last updated on: July 28, 2004</span></p>
|
||||
<p><span class="bleft"><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span><span class="bright">Last updated on: August 19, 2004</span></p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.20.0
|
||||
Release 2.20.1
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@ -44,6 +44,10 @@ The following scripts must be run by a user with administration privileges:
|
||||
make_ciaolgt.sh
|
||||
makes a shell script named ciaolgt for running Logtalk with CIAO Prolog
|
||||
(the first run of the ciaolgt script must be made as root or using sudo)
|
||||
make_ciaolgt.js
|
||||
makes a Windows shortcut named "Logtalk - CIAO" for running Logtalk with
|
||||
CIAO 1.10 (the first call to the shortcut must be made a user with
|
||||
administrative rights)
|
||||
|
||||
make_eclipselgt.sh
|
||||
makes a shell script named eclipselgt for running Logtalk with ECLiPSe
|
||||
@ -55,6 +59,14 @@ make_eclipselgt.js
|
||||
|
||||
make_gplgt.sh
|
||||
makes a shell script named gplgt for running Logtalk with GNU Prolog
|
||||
make_gplgt.js
|
||||
makes a Windows shortcut named "Logtalk - GNU Prolog" for running Logtalk
|
||||
with GNU Prolog
|
||||
make_gplgt_exe.js
|
||||
makes a new GNU Prolog top level named gplgt.exe and creates a Windows
|
||||
shortcut named "Logtalk - GNU Prolog" for running it (needs the developer
|
||||
tools nasm.exe and cp.exe installed; both the developer tools and the GNU
|
||||
Prolog installation bin directory must be in the system path)
|
||||
|
||||
make_qplgt.sh
|
||||
makes a shell script named qplgt for running Logtalk with Qu-Prolog
|
||||
@ -89,7 +101,8 @@ Logtalk installation directory) to be defined. In addition, the shell scripts
|
||||
accept as an optional argument a prefix for the location of a link to the
|
||||
scripts (default is /usr/local, creating the links in /usr/local/bin). Please
|
||||
note that the environment variable LOGTALKHOME must be defined in order to run
|
||||
the *lgt scripts that are created by the shell scripts above.
|
||||
the *lgt scripts that are created by the shell scripts above or the Windows
|
||||
shortcuts (see the INSTALL file for details on setting the variable).
|
||||
|
||||
Note: when Logtalk is manually installed from sources, the shell scripts might
|
||||
not have the executable permission bit set. In that case it will be necessary
|
||||
|
@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.20.0
|
||||
// Release 2.20.1
|
||||
//
|
||||
// Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.20.0
|
||||
## Release 2.20.1
|
||||
##
|
||||
## Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
@ -1,5 +1,5 @@
|
||||
Package: logtalk
|
||||
Version: 2.20.0
|
||||
Version: 2.20.1
|
||||
Section: languages
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.20.0
|
||||
## Release 2.20.1
|
||||
##
|
||||
## Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
@ -16,25 +16,25 @@ else
|
||||
prefix="$1"
|
||||
fi
|
||||
|
||||
rm -rf $prefix/lgt2200
|
||||
rm -rf $prefix/lgt2201
|
||||
rm -f $prefix/logtalk
|
||||
|
||||
mkdir $prefix/lgt2200
|
||||
mkdir $prefix/lgt2201
|
||||
|
||||
cd ..
|
||||
cp -R * $prefix/lgt2200
|
||||
cp -R * $prefix/lgt2201
|
||||
|
||||
cd $prefix
|
||||
chmod -R go-w,a+r lgt2200
|
||||
chmod a+x lgt2200
|
||||
chmod a+x lgt2200/misc/*.sh
|
||||
chmod a+x lgt2200/xml/*.sh
|
||||
ln -sf lgt2200 logtalk
|
||||
chmod -R go-w,a+r lgt2201
|
||||
chmod a+x lgt2201
|
||||
chmod a+x lgt2201/misc/*.sh
|
||||
chmod a+x lgt2201/xml/*.sh
|
||||
ln -sf lgt2201 logtalk
|
||||
|
||||
cd bin
|
||||
ln -sf ../lgt2200/misc/cplgtdirs.sh cplgtdirs
|
||||
ln -sf ../lgt2200/xml/lgt2pdf.sh lgt2pdf
|
||||
ln -sf ../lgt2200/xml/lgt2html.sh lgt2html
|
||||
ln -sf ../lgt2201/misc/cplgtdirs.sh cplgtdirs
|
||||
ln -sf ../lgt2201/xml/lgt2pdf.sh lgt2pdf
|
||||
ln -sf ../lgt2201/xml/lgt2html.sh lgt2html
|
||||
|
||||
echo "Logtalk installation completed."
|
||||
echo
|
||||
|
@ -1,11 +1,11 @@
|
||||
Name: logtalk
|
||||
Summary: Logtalk - Open source object-oriented extension to Prolog
|
||||
Version: 2.20.0
|
||||
Version: 2.20.1
|
||||
Release: 1
|
||||
License: Artistic License 2.0
|
||||
Group: Development/Languages
|
||||
Packager: Paulo Moura <pmoura@logtalk.org>
|
||||
Source: http://www.logtalk.org/files/lgt2200.tar.gz
|
||||
Source: http://www.logtalk.org/files/lgt2201.tgz
|
||||
BuildArchitectures: noarch
|
||||
URL: http://www.logtalk.org/
|
||||
Prefix: /usr/local
|
||||
@ -13,42 +13,42 @@ AutoReqProv: no
|
||||
%description
|
||||
Logtalk is an open source object-oriented extension to the Prolog programming language. Integrating logic programming with object-oriented and event-driven programming, it is compatible with most Prolog compilers. It supports both prototypes and classes. In addition, it supports component-based programming through category-based composition.
|
||||
%prep
|
||||
%setup -n lgt2200
|
||||
%setup -n lgt2201
|
||||
%build
|
||||
%install
|
||||
rm -rf /usr/local/lgt2200
|
||||
rm -rf /usr/local/lgt2201
|
||||
rm -f /usr/local/logtalk
|
||||
mkdir /usr/local/lgt2200
|
||||
cp -R * /usr/local/lgt2200
|
||||
mkdir /usr/local/lgt2201
|
||||
cp -R * /usr/local/lgt2201
|
||||
cd /usr/local
|
||||
chmod -R go-w,a+r lgt2200
|
||||
chmod a+x lgt2200
|
||||
chmod a+x lgt2200/misc/*.sh
|
||||
chmod a+x lgt2200/xml/*.sh
|
||||
ln -sf lgt2200 logtalk
|
||||
chmod -R go-w,a+r lgt2201
|
||||
chmod a+x lgt2201
|
||||
chmod a+x lgt2201/misc/*.sh
|
||||
chmod a+x lgt2201/xml/*.sh
|
||||
ln -sf lgt2201 logtalk
|
||||
cd bin
|
||||
ln -sf ../lgt2200/misc/cplgtdirs.sh cplgtdirs
|
||||
ln -sf ../lgt2200/xml/lgt2pdf.sh lgt2pdf
|
||||
ln -sf ../lgt2200/xml/lgt2html.sh lgt2html
|
||||
ln -sf ../lgt2201/misc/cplgtdirs.sh cplgtdirs
|
||||
ln -sf ../lgt2201/xml/lgt2pdf.sh lgt2pdf
|
||||
ln -sf ../lgt2201/xml/lgt2html.sh lgt2html
|
||||
%clean
|
||||
%files
|
||||
%defattr(-,root,users)
|
||||
%doc /usr/local/lgt2200/BIBLIOGRAPHY
|
||||
%doc /usr/local/lgt2200/INSTALL
|
||||
%doc /usr/local/lgt2200/LICENSE
|
||||
%doc /usr/local/lgt2200/QUICK_START
|
||||
%doc /usr/local/lgt2200/README
|
||||
%doc /usr/local/lgt2200/RELEASE_NOTES
|
||||
%doc /usr/local/lgt2200/UPGRADING
|
||||
/usr/local/lgt2200/compiler
|
||||
/usr/local/lgt2200/configs
|
||||
/usr/local/lgt2200/examples
|
||||
/usr/local/lgt2200/library
|
||||
%docdir /usr/local/lgt2200/manuals
|
||||
/usr/local/lgt2200/manuals
|
||||
/usr/local/lgt2200/misc
|
||||
/usr/local/lgt2200/wenv
|
||||
/usr/local/lgt2200/xml
|
||||
%doc /usr/local/lgt2201/BIBLIOGRAPHY
|
||||
%doc /usr/local/lgt2201/INSTALL
|
||||
%doc /usr/local/lgt2201/LICENSE
|
||||
%doc /usr/local/lgt2201/QUICK_START
|
||||
%doc /usr/local/lgt2201/README
|
||||
%doc /usr/local/lgt2201/RELEASE_NOTES
|
||||
%doc /usr/local/lgt2201/UPGRADING
|
||||
/usr/local/lgt2201/compiler
|
||||
/usr/local/lgt2201/configs
|
||||
/usr/local/lgt2201/examples
|
||||
/usr/local/lgt2201/library
|
||||
%docdir /usr/local/lgt2201/manuals
|
||||
/usr/local/lgt2201/manuals
|
||||
/usr/local/lgt2201/misc
|
||||
/usr/local/lgt2201/wenv
|
||||
/usr/local/lgt2201/xml
|
||||
/usr/local/logtalk
|
||||
/usr/local/bin/cplgtdirs
|
||||
/usr/local/bin/lgt2pdf
|
||||
|
92
Logtalk/misc/make_ciaolgt.js
Normal file
92
Logtalk/misc/make_ciaolgt.js
Normal file
@ -0,0 +1,92 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.20.1
|
||||
//
|
||||
// Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
||||
if (WScript.Arguments.Unnamed.Length > 0) {
|
||||
usage_help();
|
||||
WScript.Quit(0);
|
||||
}
|
||||
|
||||
WScript.Echo('');
|
||||
WScript.Echo('Creating a shortcut named "Logtalk - CIAO" for running Logtalk');
|
||||
WScript.Echo('with CIAO...');
|
||||
WScript.Echo('');
|
||||
|
||||
var WshShell = new ActiveXObject("WScript.Shell");
|
||||
|
||||
var prolog_path = WshShell.RegRead("HKLM\\Software\\Ciao Prolog\\ciao_dir") + "\\shell\\ciaosh.cpx";
|
||||
|
||||
var FSObject = new ActiveXObject("Scripting.FileSystemObject");
|
||||
|
||||
if (!FSObject.FileExists(prolog_path)) {
|
||||
WScript.Echo("Error! Cannot find ciaosh.cpx at the expected place!");
|
||||
WScript.Quit(1);
|
||||
}
|
||||
|
||||
var WshProcessEnv = WshShell.Environment("PROCESS");
|
||||
var WshSystemEnv = WshShell.Environment("SYSTEM");
|
||||
var WshUserEnv = WshShell.Environment("USER");
|
||||
var logtalk_home;
|
||||
|
||||
if (WshProcessEnv.Item("LOGTALKHOME"))
|
||||
logtalk_home = WshProcessEnv.Item("LOGTALKHOME");
|
||||
else if (WshSystemEnv.Item("LOGTALKHOME"))
|
||||
logtalk_home = WshSystemEnv.Item("LOGTALKHOME");
|
||||
else if (WshUserEnv.Item("LOGTALKHOME"))
|
||||
logtalk_home = WshUserEnv.Item("LOGTALKHOME")
|
||||
else {
|
||||
WScript.Echo("Error! The system environment variable LOGTALKHOME must be defined first!");
|
||||
usage_help();
|
||||
WScript.Quit(1);
|
||||
}
|
||||
|
||||
logtalk_home = logtalk_home.replace(/\\/g, "\\\\");
|
||||
|
||||
if (!FSObject.FolderExists(logtalk_home + "\\bin"))
|
||||
FSObject.CreateFolder(logtalk_home + "\\bin");
|
||||
|
||||
var f = FSObject.CreateTextFile(logtalk_home + "\\bin\\logtalkciao.pl", true);
|
||||
|
||||
f.WriteLine(":- ensure_loaded('\$LOGTALKHOME/configs/ciao_aux.config').");
|
||||
f.WriteLine(":- ensure_loaded('\$LOGTALKHOME/compiler/logtalk.pl').");
|
||||
f.WriteLine(":- op(600, xfy, ::).");
|
||||
f.WriteLine(":- op(600, fy, ::).");
|
||||
f.WriteLine(":- op(600, fy, ^^).");
|
||||
f.WriteLine(":- op(200, fy, +).");
|
||||
f.WriteLine(":- op(200, fy, ?).");
|
||||
f.WriteLine(":- op(200, fy, @).");
|
||||
f.WriteLine(":- op(200, fy, -).");
|
||||
f.Close();
|
||||
|
||||
var ProgramsPath = WshShell.SpecialFolders("AllUsersPrograms");
|
||||
var link = WshShell.CreateShortcut(ProgramsPath + "\\Logtalk - CIAO.lnk");
|
||||
link.Arguments = "-l %LOGTALKHOME%\\bin\\logtalkciao.pl";
|
||||
link.Description = "Runs Logtalk with CIAO";
|
||||
link.IconLocation = "app.exe,1";
|
||||
link.TargetPath = prolog_path;
|
||||
link.WindowStyle = 1;
|
||||
link.WorkingDirectory = logtalk_home;
|
||||
link.Save();
|
||||
|
||||
WScript.Echo('Done. The "Logtalk - CIAO" shortcut was been added to the');
|
||||
WScript.Echo('Start Menu Programs. Make sure that the LOGTALKHOME environment');
|
||||
WScript.Echo('variable is defined for all users wishing to use the shortcut.');
|
||||
WScript.Echo('');
|
||||
|
||||
WScript.Quit(0);
|
||||
|
||||
function usage_help() {
|
||||
WScript.Echo('');
|
||||
WScript.Echo('This script creates a shortcut named "Logtalk - CIAO" for running Logtalk');
|
||||
WScript.Echo('with CIAO. The script must be run by a user with administrative rights.');
|
||||
WScript.Echo('The LOGTALKHOME environment variable must be defined before running this');
|
||||
WScript.Echo('script.');
|
||||
WScript.Echo('');
|
||||
WScript.Echo('Usage:');
|
||||
WScript.Echo(' ' + WScript.ScriptName + ' help');
|
||||
WScript.Echo(' ' + WScript.ScriptName);
|
||||
WScript.Echo('');
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.20.0
|
||||
## Release 2.20.1
|
||||
##
|
||||
## Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.20.0
|
||||
// Release 2.20.1
|
||||
//
|
||||
// Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user