Logtalk 2.29.1 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1744 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.28.2
|
||||
Release 2.29.1
|
||||
|
||||
Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
This directory contains several scripts used for Logtalk packaging,
|
||||
This directory contains several shell scripts used for Logtalk packaging,
|
||||
installation, and integration with Prolog compilers. Those with extension
|
||||
".sh" are Bourne-compatible shells scripts for MacOS X, Linux, and similar
|
||||
systems. Those with extension ".js" are JScript command-line scripts for
|
||||
@@ -14,6 +14,9 @@ Windows; they require WSH 5.6 or later version to be installed and should
|
||||
be run using cscript.exe from a DOS command line shell (you may download
|
||||
WSH 5.6 from http://msdn.microsoft.com/downloads/list/webdev.asp)
|
||||
|
||||
build_release.sh
|
||||
helper script for building the distribution files of a new Logtalk release
|
||||
|
||||
lgt_install.sh
|
||||
shell script for installing Logtalk in a system-wide location for Unix
|
||||
and Unix-like operating systems (must be run from this directory by a
|
||||
@@ -32,14 +35,20 @@ lgt_install.js
|
||||
after running this script in order to use the items on the "Logtalk"
|
||||
program group due to the definition of new system environment variables)
|
||||
|
||||
logtalk.spec
|
||||
linux/build_rpm.sh
|
||||
simple shell script for building Linux RPMs
|
||||
|
||||
linux/logtalk.spec
|
||||
specification file for building Linux RPMs
|
||||
(copy the Logtalk tarball to your RPM SOURCES directory and then
|
||||
run the command: rpmbuild -ba --target=noarch-*-linux logtalk.spec)
|
||||
|
||||
logtalk.iss
|
||||
macosx
|
||||
directory containing files used when building MacOS X installer packages
|
||||
|
||||
windows/logtalk.iss
|
||||
Inno Setup GUI Windows installer script; you may compile it with Inno
|
||||
Setup 5.1.6 or later version to produce a Windows 2000/XP GUI installer
|
||||
Setup 5.1.9 or later version to produce a Windows 2000/XP GUI installer
|
||||
(http://www.jrsoftware.org/isinfo.php)
|
||||
|
||||
cplgtdirs.sh
|
||||
@@ -74,8 +83,8 @@ make_eclipselgt.sh
|
||||
makes a shell script named "eclipselgt" for running Logtalk with ECLiPSe
|
||||
make_eclipselgt.js
|
||||
makes a Windows shortcut named "Logtalk - ECLiPSe" for running Logtalk
|
||||
with ECLiPSe 5.8 (if you are using a different version, you must edit
|
||||
the reference to the registry key in the script; if you prefer to use
|
||||
with ECLiPSe 5.11 or 5.10 (if you are using a different version, you must
|
||||
edit the reference to the registry key in the script; if you prefer to use
|
||||
TkEclipse, open the %LOGTALKHOME%\bin\logtalke_eclipse.pl file with it)
|
||||
|
||||
make_gplgt.sh
|
||||
|
53
Logtalk/scripts/build_release.sh
Normal file
53
Logtalk/scripts/build_release.sh
Normal file
@@ -0,0 +1,53 @@
|
||||
#!/bin/sh
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.29.1
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
||||
dir=`PWD`
|
||||
|
||||
cvs -d :pserver:anonymous@cvs.logtalk.org:/usr/local/cvsroot checkout logtalk
|
||||
|
||||
cd logtalk
|
||||
scripts/cleandist.sh
|
||||
chmod a+x manuals/userman/*.sh
|
||||
chmod a+x manuals/refman/*.sh
|
||||
chmod a-x scripts/*.js
|
||||
chmod a+x scripts/linux/*.sh
|
||||
chmod a+x scripts/macosx/postflight
|
||||
chmod a+x xml/*.sh
|
||||
chmod a-x xml/*.js
|
||||
|
||||
cd ..
|
||||
cp -R logtalk/manuals man2291
|
||||
tar -czf man2291.tgz man2291
|
||||
mv logtalk lgt2291
|
||||
tar -czf lgt2291.tgz lgt2291
|
||||
|
||||
md5="`md5 -q lgt2291.tgz`"
|
||||
sudo mkdir -p /opt/local/var/db/dports/distfiles/logtalk
|
||||
sudo cp -f lgt2291.tgz /opt/local/var/db/dports/distfiles/logtalk/lgt2291.tgz
|
||||
cd /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/lang/logtalk/
|
||||
sudo cp -f Portfile Portfile.old
|
||||
sudo sed -e 's/^version.*/version 2.29.1/' -i '' Portfile
|
||||
sudo sed -e "s/^checksums.*/checksums md5 $md5/" -i '' Portfile
|
||||
sudo sed -e 's/^distname.*/distname lgt2291/' -i '' Portfile
|
||||
sudo port clean --archive logtalk
|
||||
sudo port install logtalk
|
||||
sudo port pkg logtalk
|
||||
cp -R work/logtalk-2.29.1.pkg $dir
|
||||
sudo port uninstall logtalk
|
||||
|
||||
cd $dir
|
||||
mkdir manpdf2291
|
||||
cd man2291/userman
|
||||
./userman.sh
|
||||
mv userman.pdf ../../manpdf2291
|
||||
cd ../refman
|
||||
./refman.sh
|
||||
mv refman.pdf ../../manpdf2291
|
||||
cd ../..
|
||||
tar -czf manpdf2291.tgz manpdf2291
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.28.2
|
||||
## Release 2.29.1
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.28.2
|
||||
// Release 2.29.1
|
||||
//
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.28.2
|
||||
## Release 2.29.1
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
@@ -1,5 +1,5 @@
|
||||
Package: logtalk
|
||||
Version: 2.28.2
|
||||
Version: 2.29.1
|
||||
Section: languages
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.28.2
|
||||
// Release 2.29.1
|
||||
//
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
@@ -56,7 +56,7 @@ if (!FSObject.FolderExists(ProgramsPath + "\\Logtalk"))
|
||||
FSObject.CreateFolder(ProgramsPath + "\\Logtalk");
|
||||
|
||||
var link = WshShell.CreateShortcut(ProgramsPath + "\\Logtalk\\Logtalk Web Site.url");
|
||||
link.TargetPath = "http://www.logtalk.org/";
|
||||
link.TargetPath = "http://logtalk.org/";
|
||||
link.Save();
|
||||
|
||||
link = WshShell.CreateShortcut(ProgramsPath + "\\Logtalk\\Logtalk HTML Documentation.lnk");
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.28.2
|
||||
## Release 2.29.1
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
@@ -23,20 +23,24 @@ echo
|
||||
echo "Installing Logtalk on $prefix ..."
|
||||
echo
|
||||
|
||||
rm -rf $prefix/lgt2282
|
||||
rm -rf $prefix/lgt2291
|
||||
rm -f $prefix/logtalk
|
||||
|
||||
mkdir $prefix/lgt2282
|
||||
mkdir $prefix/lgt2291
|
||||
|
||||
cd ..
|
||||
cp -R * $prefix/lgt2282
|
||||
cp -R * $prefix/lgt2291
|
||||
|
||||
cd $prefix
|
||||
chmod -R go-w,a+r lgt2282
|
||||
chmod a+x lgt2282
|
||||
chmod a+x lgt2282/scripts/*.sh
|
||||
chmod a+x lgt2282/xml/*.sh
|
||||
ln -sf lgt2282 logtalk
|
||||
chmod -R go-w,a+r lgt2291
|
||||
chmod a+x lgt2291
|
||||
chmod a+x lgt2291/scripts/*.sh
|
||||
chmod a-x lgt2291/scripts/*.js
|
||||
chmod a+x lgt2291/scripts/linux/*.sh
|
||||
chmod a+x lgt2291/scripts/macosx/postflight
|
||||
chmod a+x lgt2291/xml/*.sh
|
||||
chmod a-x lgt2291/xml/*.js
|
||||
ln -sf lgt2291 logtalk
|
||||
|
||||
mkdir -p bin
|
||||
cd bin
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.28.2
|
||||
## Release 2.29.1
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
@@ -27,7 +27,7 @@ if ! [ -d "$LOGTALKHOME" ]; then
|
||||
fi
|
||||
|
||||
cd $LOGTALKHOME/..
|
||||
rm -rf lgt2282
|
||||
rm -rf lgt2291
|
||||
rm -f logtalk
|
||||
|
||||
if [ -d bin ]; then
|
||||
|
9
Logtalk/scripts/linux/NOTES.txt
Normal file
9
Logtalk/scripts/linux/NOTES.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.1
|
||||
|
||||
Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
This directory contains files used when building Linux RPM packages.
|
28
Logtalk/scripts/linux/build_rpm.sh
Normal file
28
Logtalk/scripts/linux/build_rpm.sh
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.29.1
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
||||
dir="$PWD"
|
||||
cd ..
|
||||
|
||||
LOGTALKHOME=/usr/local/logtalk ./lgt_uninstall.sh
|
||||
./lgt_install.sh
|
||||
|
||||
cd /usr/local/logtalk
|
||||
scripts/cleandist.sh
|
||||
|
||||
cd ..
|
||||
tar -czf lgt2291.tgz lgt2291
|
||||
mv lgt2291.tgz /usr/src/redhat/SOURCES
|
||||
|
||||
cd "$dir"
|
||||
rpmbuild -ba --target=noarch-*-linux logtalk.spec
|
||||
|
||||
cd /usr/src/redhat/RPMS/noarch
|
||||
echo $PWD
|
||||
ls -l
|
97
Logtalk/scripts/linux/logtalk.spec
Normal file
97
Logtalk/scripts/linux/logtalk.spec
Normal file
@@ -0,0 +1,97 @@
|
||||
Name: logtalk
|
||||
Summary: Logtalk - Open source object-oriented extension to Prolog
|
||||
Version: 2.29.1
|
||||
Release: 1
|
||||
License: Artistic License 2.0
|
||||
Group: Development/Languages
|
||||
Packager: Paulo Moura <pmoura@logtalk.org>
|
||||
Source: http://logtalk.org/files/lgt2291.tgz
|
||||
BuildArchitectures: noarch
|
||||
URL: http://logtalk.org/
|
||||
Prefix: /usr/local
|
||||
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 lgt2291
|
||||
%build
|
||||
%install
|
||||
rm -rf /usr/local/lgt2291
|
||||
rm -f /usr/local/logtalk
|
||||
mkdir /usr/local/lgt2291
|
||||
cp -R * /usr/local/lgt2291
|
||||
cd /usr/local
|
||||
chmod -R go-w,a+r lgt2291
|
||||
chmod a+x lgt2291
|
||||
chmod a+x lgt2291/scripts/*.sh
|
||||
chmod a-x lgt2291/scripts/*.js
|
||||
chmod a+x lgt2291/xml/*.sh
|
||||
chmod a-x lgt2291/xml/*.js
|
||||
ln -sf lgt2291 logtalk
|
||||
cd bin
|
||||
ln -sf ../logtalk/scripts/cplgtdirs.sh cplgtdirs
|
||||
ln -sf ../logtalk/xml/lgt2pdf.sh lgt2pdf
|
||||
ln -sf ../logtalk/xml/lgt2html.sh lgt2html
|
||||
ln -sf ../logtalk/xml/lgt2xml.sh lgt2xml
|
||||
%clean
|
||||
%files
|
||||
%defattr(-,root,users)
|
||||
%doc /usr/local/lgt2291/BIBLIOGRAPHY.bib
|
||||
%doc /usr/local/lgt2291/CUSTOMIZE.txt
|
||||
%doc /usr/local/lgt2291/INSTALL.txt
|
||||
%doc /usr/local/lgt2291/LICENSE.txt
|
||||
%doc /usr/local/lgt2291/QUICK_START.txt
|
||||
%doc /usr/local/lgt2291/README.txt
|
||||
%doc /usr/local/lgt2291/RELEASE_NOTES.txt
|
||||
%doc /usr/local/lgt2291/UPGRADING.txt
|
||||
/usr/local/lgt2291/compiler
|
||||
/usr/local/lgt2291/configs
|
||||
/usr/local/lgt2291/contributions
|
||||
/usr/local/lgt2291/examples
|
||||
/usr/local/lgt2291/libpaths
|
||||
/usr/local/lgt2291/library
|
||||
%docdir /usr/local/lgt2291/manuals
|
||||
/usr/local/lgt2291/manuals
|
||||
/usr/local/lgt2291/scripts
|
||||
/usr/local/lgt2291/wenv
|
||||
/usr/local/lgt2291/xml
|
||||
/usr/local/logtalk
|
||||
/usr/local/bin/cplgtdirs
|
||||
/usr/local/bin/lgt2pdf
|
||||
/usr/local/bin/lgt2html
|
||||
/usr/local/bin/lgt2xml
|
||||
%post
|
||||
mkdir -p /etc/profile.d
|
||||
echo "# Logtalk environment setup" > /etc/profile.d/logtalk.sh
|
||||
echo "" >> /etc/profile.d/logtalk.sh
|
||||
echo "# Logtalk installation directory:" >> /etc/profile.d/logtalk.sh
|
||||
echo "export LOGTALKHOME=$RPM_INSTALL_PREFIX/logtalk" >> /etc/profile.d/logtalk.sh
|
||||
echo "" >> /etc/profile.d/logtalk.sh
|
||||
echo "# Default location for Logtalk end-user files:" >> /etc/profile.d/logtalk.sh
|
||||
echo "export LOGTALKUSER=\$HOME/logtalk" >> /etc/profile.d/logtalk.sh
|
||||
chmod a+x /etc/profile.d/logtalk.sh
|
||||
echo "# Logtalk environment setup" > /etc/profile.d/logtalk.csh
|
||||
echo "" >> /etc/profile.d/logtalk.csh
|
||||
echo "# Logtalk installation directory:" >> /etc/profile.d/logtalk.csh
|
||||
echo "setenv LOGTALKHOME $RPM_INSTALL_PREFIX/logtalk" >> /etc/profile.d/logtalk.csh
|
||||
echo "" >> /etc/profile.d/logtalk.csh
|
||||
echo "# Default location for Logtalk end-user files:" >> /etc/profile.d/logtalk.csh
|
||||
echo "setenv LOGTALKUSER \$HOME/logtalk" >> /etc/profile.d/logtalk.csh
|
||||
chmod a+x /etc/profile.d/logtalk.csh
|
||||
eval export LOGTALKHOME=$RPM_INSTALL_PREFIX/logtalk; cd $LOGTALKHOME/scripts; ./makeall_lgt.sh $RPM_INSTALL_PREFIX
|
||||
echo ""
|
||||
echo "Defined the following environment variables for all users:"
|
||||
echo ""
|
||||
echo " Logtalk installation directory: LOGTALKHOME = $RPM_INSTALL_PREFIX/logtalk"
|
||||
echo " Default Logtalk user files directory: LOGTALKUSER = \$HOME/logtalk"
|
||||
echo ""
|
||||
echo "You may need to logout and login again or start a new shell in order to"
|
||||
echo "use the new environment variables."
|
||||
echo ""
|
||||
echo "You may change the default value of the LOGTALKUSER environment variable"
|
||||
echo "in your shell configuration files if you already use, or want to use, a "
|
||||
echo "different location for the Logtalk user files directory."
|
||||
echo ""
|
||||
%postun
|
||||
rm -f /etc/profile.d/logtalk.sh
|
||||
rm -f /etc/profile.d/logtalk.csh
|
205
Logtalk/scripts/macosx/License.html
Normal file
205
Logtalk/scripts/macosx/License.html
Normal file
@@ -0,0 +1,205 @@
|
||||
<font size="-2">
|
||||
<pre>
|
||||
The Artistic License 2.0
|
||||
|
||||
Copyright (c) 2000-2006, The Perl Foundation.
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
This license establishes the terms under which a given free software
|
||||
Package may be copied, modified, distributed, and/or redistributed.
|
||||
The intent is that the Copyright Holder maintains some artistic
|
||||
control over the development of that Package while still keeping the
|
||||
Package available as open source and free software.
|
||||
|
||||
You are always permitted to make arrangements wholly outside of this
|
||||
license directly with the Copyright Holder of a given Package. If the
|
||||
terms of this license do not permit the full use that you propose to
|
||||
make of the Package, you should contact the Copyright Holder and seek
|
||||
a different licensing arrangement.
|
||||
|
||||
Definitions
|
||||
|
||||
"Copyright Holder" means the individual(s) or organization(s)
|
||||
named in the copyright notice for the entire Package.
|
||||
|
||||
"Contributor" means any party that has contributed code or other
|
||||
material to the Package, in accordance with the Copyright Holder's
|
||||
procedures.
|
||||
|
||||
"You" and "your" means any person who would like to copy,
|
||||
distribute, or modify the Package.
|
||||
|
||||
"Package" means the collection of files distributed by the
|
||||
Copyright Holder, and derivatives of that collection and/or of
|
||||
those files. A given Package may consist of either the Standard
|
||||
Version, or a Modified Version.
|
||||
|
||||
"Distribute" means providing a copy of the Package or making it
|
||||
accessible to anyone else, or in the case of a company or
|
||||
organization, to others outside of your company or organization.
|
||||
|
||||
"Distributor Fee" means any fee that you charge for Distributing
|
||||
this Package or providing support for this Package to another
|
||||
party. It does not mean licensing fees.
|
||||
|
||||
"Standard Version" refers to the Package if it has not been
|
||||
modified, or has been modified only in ways explicitly requested
|
||||
by the Copyright Holder.
|
||||
|
||||
"Modified Version" means the Package, if it has been changed, and
|
||||
such changes were not explicitly requested by the Copyright
|
||||
Holder.
|
||||
|
||||
"Original License" means this Artistic License as Distributed with
|
||||
the Standard Version of the Package, in its current version or as
|
||||
it may be modified by The Perl Foundation in the future.
|
||||
|
||||
"Source" form means the source code, documentation source, and
|
||||
configuration files for the Package.
|
||||
|
||||
"Compiled" form means the compiled bytecode, object code, binary,
|
||||
or any other form resulting from mechanical transformation or
|
||||
translation of the Source form.
|
||||
|
||||
|
||||
Permission for Use and Modification Without Distribution
|
||||
|
||||
(1) You are permitted to use the Standard Version and create and use
|
||||
Modified Versions for any purpose without restriction, provided that
|
||||
you do not Distribute the Modified Version.
|
||||
|
||||
|
||||
Permissions for Redistribution of the Standard Version
|
||||
|
||||
(2) You may Distribute verbatim copies of the Source form of the
|
||||
Standard Version of this Package in any medium without restriction,
|
||||
either gratis or for a Distributor Fee, provided that you duplicate
|
||||
all of the original copyright notices and associated disclaimers. At
|
||||
your discretion, such verbatim copies may or may not include a
|
||||
Compiled form of the Package.
|
||||
|
||||
(3) You may apply any bug fixes, portability changes, and other
|
||||
modifications made available from the Copyright Holder. The resulting
|
||||
Package will still be considered the Standard Version, and as such
|
||||
will be subject to the Original License.
|
||||
|
||||
|
||||
Distribution of Modified Versions of the Package as Source
|
||||
|
||||
(4) You may Distribute your Modified Version as Source (either gratis
|
||||
or for a Distributor Fee, and with or without a Compiled form of the
|
||||
Modified Version) provided that you clearly document how it differs
|
||||
from the Standard Version, including, but not limited to, documenting
|
||||
any non-standard features, executables, or modules, and provided that
|
||||
you do at least ONE of the following:
|
||||
|
||||
(a) make the Modified Version available to the Copyright Holder
|
||||
of the Standard Version, under the Original License, so that the
|
||||
Copyright Holder may include your modifications in the Standard
|
||||
Version.
|
||||
|
||||
(b) ensure that installation of your Modified Version does not
|
||||
prevent the user installing or running the Standard Version. In
|
||||
addition, the Modified Version must bear a name that is different
|
||||
from the name of the Standard Version.
|
||||
|
||||
(c) allow anyone who receives a copy of the Modified Version to
|
||||
make the Source form of the Modified Version available to others
|
||||
under
|
||||
|
||||
(i) the Original License or
|
||||
|
||||
(ii) a license that permits the licensee to freely copy,
|
||||
modify and redistribute the Modified Version using the same
|
||||
licensing terms that apply to the copy that the licensee
|
||||
received, and requires that the Source form of the Modified
|
||||
Version, and of any works derived from it, be made freely
|
||||
available in that license fees are prohibited but Distributor
|
||||
Fees are allowed.
|
||||
|
||||
|
||||
Distribution of Compiled Forms of the Standard Version
|
||||
or Modified Versions without the Source
|
||||
|
||||
(5) You may Distribute Compiled forms of the Standard Version without
|
||||
the Source, provided that you include complete instructions on how to
|
||||
get the Source of the Standard Version. Such instructions must be
|
||||
valid at the time of your distribution. If these instructions, at any
|
||||
time while you are carrying out such distribution, become invalid, you
|
||||
must provide new instructions on demand or cease further distribution.
|
||||
If you provide valid instructions or cease distribution within thirty
|
||||
days after you become aware that the instructions are invalid, then
|
||||
you do not forfeit any of your rights under this license.
|
||||
|
||||
(6) You may Distribute a Modified Version in Compiled form without
|
||||
the Source, provided that you comply with Section 4 with respect to
|
||||
the Source of the Modified Version.
|
||||
|
||||
|
||||
Aggregating or Linking the Package
|
||||
|
||||
(7) You may aggregate the Package (either the Standard Version or
|
||||
Modified Version) with other packages and Distribute the resulting
|
||||
aggregation provided that you do not charge a licensing fee for the
|
||||
Package. Distributor Fees are permitted, and licensing fees for other
|
||||
components in the aggregation are permitted. The terms of this license
|
||||
apply to the use and Distribution of the Standard or Modified Versions
|
||||
as included in the aggregation.
|
||||
|
||||
(8) You are permitted to link Modified and Standard Versions with
|
||||
other works, to embed the Package in a larger work of your own, or to
|
||||
build stand-alone binary or bytecode versions of applications that
|
||||
include the Package, and Distribute the result without restriction,
|
||||
provided the result does not expose a direct interface to the Package.
|
||||
|
||||
|
||||
Items That are Not Considered Part of a Modified Version
|
||||
|
||||
(9) Works (including, but not limited to, modules and scripts) that
|
||||
merely extend or make use of the Package, do not, by themselves, cause
|
||||
the Package to be a Modified Version. In addition, such works are not
|
||||
considered parts of the Package itself, and are not subject to the
|
||||
terms of this license.
|
||||
|
||||
|
||||
General Provisions
|
||||
|
||||
(10) Any use, modification, and distribution of the Standard or
|
||||
Modified Versions is governed by this Artistic License. By using,
|
||||
modifying or distributing the Package, you accept this license. Do not
|
||||
use, modify, or distribute the Package, if you do not accept this
|
||||
license.
|
||||
|
||||
(11) If your Modified Version has been derived from a Modified
|
||||
Version made by someone other than you, you are nevertheless required
|
||||
to ensure that your Modified Version complies with the requirements of
|
||||
this license.
|
||||
|
||||
(12) This license does not grant you the right to use any trademark,
|
||||
service mark, tradename, or logo of the Copyright Holder.
|
||||
|
||||
(13) This license includes the non-exclusive, worldwide,
|
||||
free-of-charge patent license to make, have made, use, offer to sell,
|
||||
sell, import and otherwise transfer the Package with respect to any
|
||||
patent claims licensable by the Copyright Holder that are necessarily
|
||||
infringed by the Package. If you institute patent litigation
|
||||
(including a cross-claim or counterclaim) against any party alleging
|
||||
that the Package constitutes direct or contributory patent
|
||||
infringement, then this Artistic License to you shall terminate on the
|
||||
date that such litigation is filed.
|
||||
|
||||
(14) Disclaimer of Warranty:
|
||||
THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS
|
||||
IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
|
||||
NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL
|
||||
LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL
|
||||
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF
|
||||
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
</pre>
|
||||
</font>
|
10
Logtalk/scripts/macosx/NOTES.txt
Normal file
10
Logtalk/scripts/macosx/NOTES.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.1
|
||||
|
||||
Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
This directory contains files used when building MacOS X installer
|
||||
packages.
|
134
Logtalk/scripts/macosx/ReadMe.html
Normal file
134
Logtalk/scripts/macosx/ReadMe.html
Normal file
@@ -0,0 +1,134 @@
|
||||
<h1>Logtalk - Object oriented extension to Prolog</h1>
|
||||
|
||||
<h3>Release 2.29.1</h3>
|
||||
|
||||
<h3>Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.</h3>
|
||||
|
||||
<p>CONTENTS</p>
|
||||
|
||||
<ol>
|
||||
<li>License</li>
|
||||
<li>Home of Logtalk package</li>
|
||||
<li>Registration</li>
|
||||
<li>Support</li>
|
||||
<li>Installation</li>
|
||||
<li>Customization</li>
|
||||
<li>Quick start</li>
|
||||
<li>Documentation</li>
|
||||
<li>Upgrading</li>
|
||||
<li>Citations</li>
|
||||
<li>Contributions</li>
|
||||
</ol>
|
||||
|
||||
<h2>1. License</h2>
|
||||
|
||||
<p>The overall copyright and permission notice for Logtalk can be found in the
|
||||
<code>LICENSE</code> file in this directory. Logtalk follows the Artistic License 2.0.
|
||||
The copyright notice and license applies to all files in this release
|
||||
(including sources, documentation, and examples) unless otherwise explicitly
|
||||
stated.</p>
|
||||
|
||||
<h2>2. Home of Logtalk package</h2>
|
||||
|
||||
<p>The latest release of the Logtalk package is always available at the URL:</p>
|
||||
|
||||
<blockquote>
|
||||
<p><a href="http://logtalk.org/">http://logtalk.org/</a></p>
|
||||
</blockquote>
|
||||
|
||||
<p>At this address you can also find additional documentation and information
|
||||
about Logtalk.</p>
|
||||
|
||||
<h2>3. Registration</h2>
|
||||
|
||||
<p>To register as a Logtalk user either use the registration form found at
|
||||
the Logtalk web site or send an email message to:</p>
|
||||
|
||||
<blockquote>
|
||||
<p><a href="mailto:registration@logtalk.org">registration@logtalk.org</a></p>
|
||||
</blockquote>
|
||||
|
||||
<p>with the following information:</p>
|
||||
|
||||
<p>email address, full name, organization, organization type (education,
|
||||
commercial, government, ...), prolog compilers used (optional),
|
||||
platforms (mac, pc, unix,...) (optional)</p>
|
||||
|
||||
<h2>4. Support</h2>
|
||||
|
||||
<p>Logtalk support is available for registered users via email to
|
||||
<a href="mailto:support@logtalk.org">support@logtalk.org</a>.</p>
|
||||
|
||||
<p>At the URL <a href="http://logtalk.org/bugs.html">http://logtalk.org/bugs.html</a> you can find a list of known
|
||||
problems and download bug fixes. The latest news about Logtalk are
|
||||
available at the URL <a href="http://logtalk.org/news.html">http://logtalk.org/news.html</a>.</p>
|
||||
|
||||
<p>There is also a mailing list, "logtalk", used to announce new releases and
|
||||
bug fixes and for discussion between registered Logtalk users, that you
|
||||
may subscribe. For instructions on how to subscribe, please visit the web
|
||||
page:</p>
|
||||
|
||||
<blockquote>
|
||||
<p><a href="http://lserv.ci.uc.pt/mailman/listinfo/logtalk">http://lserv.ci.uc.pt/mailman/listinfo/logtalk</a></p>
|
||||
</blockquote>
|
||||
|
||||
<p>or send an email message to:</p>
|
||||
|
||||
<blockquote>
|
||||
<p><a href="mailto:logtalk-request@lserv.ci.uc.pt">logtalk-request@lserv.ci.uc.pt</a></p>
|
||||
</blockquote>
|
||||
|
||||
<p>with just the word "help" in the subject or in the message body.</p>
|
||||
|
||||
<h2>5. Installation</h2>
|
||||
|
||||
<p>Logtalk can be installed either from sources by running a few shell scripts
|
||||
or by using one of the provided installers, depending on your operating
|
||||
system. For manual installation, see the file <code>INSTALL.txt</code> for detailed
|
||||
instructions.</p>
|
||||
|
||||
<p>See the user manual for a description of the source files organization
|
||||
and for using instructions (to read the user manual open the file
|
||||
<code>manuals/index.html</code> with a web browser). Most files are formatted
|
||||
using four-space tabs.</p>
|
||||
|
||||
<h2>6. Customization</h2>
|
||||
|
||||
<p>The file <code>CUSTOMIZE.txt</code> provides detailed instructions for customizing the
|
||||
Logtalk installation and working environment.</p>
|
||||
|
||||
<h2>7. Quick start</h2>
|
||||
|
||||
<p>The file <code>QUICK_START</code> provides quick instructions for those of you in a hurry
|
||||
to run Logtalk, provided that your favorite Prolog compiler is supported.</p>
|
||||
|
||||
<h2>7. Documentation</h2>
|
||||
|
||||
<p>The reference and user manuals and the tutorial are provided in XHTML format
|
||||
and can be found in the "manuals" directory.</p>
|
||||
|
||||
<p>The file <code>RELEASE_NOTES</code> contains descriptions of all Logtalk updates since the
|
||||
first public version. Read it carefully if you have been using a previous
|
||||
Logtalk version.</p>
|
||||
|
||||
<h2>8. Upgrading</h2>
|
||||
|
||||
<p>If you are upgrading from a previous Logtalk version, please check the file
|
||||
<code>UPGRADING</code> for instructions on how to upgrade your programs or your custom
|
||||
configuration files to run under this new version.</p>
|
||||
|
||||
<h2>9. Citations</h2>
|
||||
|
||||
<p>If you want to cite Logtalk in your publications, please consult the file
|
||||
<code>BIBLIOGRAPHY</code> for bibliographic references in BibTeX format.</p>
|
||||
|
||||
<h2>10. Contributions</h2>
|
||||
|
||||
<p>Contributions, constructive criticisms, code, and suggestions are always
|
||||
welcome. If you want to contribute to this project, drop me a line to the
|
||||
support address given above.</p>
|
||||
|
||||
<p>Happy Logtalking!</p>
|
||||
|
||||
<p>Paulo Moura
|
||||
<a href="mailto:pmoura@logtalk.org">pmoura@logtalk.org</a></p>
|
20
Logtalk/scripts/macosx/Welcome.html
Normal file
20
Logtalk/scripts/macosx/Welcome.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
|
||||
<title>Install Logtalk</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<b>Welcome to the Logtalk for Mac OS X Installer</b>
|
||||
</p>
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
<p>
|
||||
This installer guides you through the steps necessary to install Logtalk for Mac OS X. Logtalk is installed on the <b>/opt/local/share/logtalk</b> directory. After completing the installation, each Logtalk end-user must run the shell command <b>cplgtdirs</b> once before using the Logtalk – Prolog integration scripts. This command creates a folder named <b>logtalk</b> on the user's home directory containing configuration files, examples, and documentation. Inside this folder is a link to a <b>CUSTOMIZE.txt</b> file describes how to customize Logtalk for your personal use. Links to the Logtalk – Prolog integration scripts are created on the <b>/opt/local/bin</b> directory, which must be on your system path. The integration scripts are described on the <b>/opt/local/share/logtalk/scripts/NOTES.txt</b> file.
|
||||
</p>
|
||||
<p>
|
||||
To get started, click Continue.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
37
Logtalk/scripts/macosx/postflight
Normal file
37
Logtalk/scripts/macosx/postflight
Normal file
@@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.29.1
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
||||
echo ""
|
||||
echo "Checking the LOGTALKHOME environment variable definition..."
|
||||
echo ""
|
||||
|
||||
if grep "LOGTALKHOME=/opt/local/share/logtalk" /etc/profile >/dev/null 2>&1; then
|
||||
echo "Logtalk environment variables default values already set for bash!"
|
||||
else
|
||||
/bin/cp -fp /etc/profile /etc/profile.lgtsaved
|
||||
echo '' >> /etc/profile
|
||||
echo '# Logtalk environment variables default values' >> /etc/profile
|
||||
echo 'LOGTALKHOME=/opt/local/share/logtalk' >> /etc/profile
|
||||
echo 'LOGTALKUSER=$HOME/logtalk' >> /etc/profile
|
||||
echo 'export LOGTALKHOME LOGTALKUSER' >> /etc/profile
|
||||
fi
|
||||
|
||||
if grep "setenv LOGTALKHOME /opt/local/share/logtalk" /etc/csh.cshrc >/dev/null 2>&1; then
|
||||
echo "Logtalk environment variables default values already set for csh!"
|
||||
else
|
||||
/bin/cp -fp /etc/csh.cshrc /etc/csh.cshrc.lgtsaved
|
||||
echo '' >> /etc/csh.cshrc
|
||||
echo '# Logtalk environment variables default values' >> /etc/csh.cshrc
|
||||
echo "setenv LOGTALKHOME /opt/local/share/logtalk" >> /etc/csh.cshrc
|
||||
echo 'setenv LOGTALKUSER $HOME/logtalk' >> /etc/csh.cshrc
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "You have succesfully installed Logtalk!"
|
||||
echo ""
|
Binary file not shown.
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.28.2
|
||||
## Release 2.29.1
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.28.2
|
||||
// Release 2.29.1
|
||||
//
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
@@ -97,8 +97,8 @@ WScript.Echo('');
|
||||
WScript.Echo('The first call to the shortcut must be made by a user with');
|
||||
WScript.Echo('administrative rights.');
|
||||
WScript.Echo('');
|
||||
WScript.Echo('Users must run the batch script "cplgtdirs" before using the');
|
||||
WScript.Echo('"Logtalk - CIAO" shortcut.');
|
||||
WScript.Echo('Users must run the batch script "cplgtdirs" once before using');
|
||||
WScript.Echo('the "Logtalk - CIAO" shortcut.');
|
||||
WScript.Echo('');
|
||||
|
||||
WScript.Quit(0);
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.28.2
|
||||
## Release 2.29.1
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.28.2
|
||||
// Release 2.29.1
|
||||
//
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
@@ -17,16 +17,37 @@ if (WScript.Arguments.Unnamed.Length > 0) {
|
||||
|
||||
WScript.Echo('');
|
||||
WScript.Echo('Creating a shortcut named "Logtalk - ECLiPSe" for running Logtalk with');
|
||||
WScript.Echo('ECLiPSe 5.10 (edit this script if you are using a different version)...');
|
||||
WScript.Echo('ECLiPSe 5.11 or 5.10 (edit this script if you are using a different version)...');
|
||||
WScript.Echo('');
|
||||
|
||||
var WshShell = new ActiveXObject("WScript.Shell");
|
||||
|
||||
var prolog_path = WshShell.RegRead("HKLM\\Software\\IC-Parc\\Eclipse\\5.10\\ECLIPSEDIR") + "\\lib\\i386_nt\\eclipse.exe";
|
||||
var prolog_path;
|
||||
var prolog_path511;
|
||||
var prolog_path510;
|
||||
|
||||
try {
|
||||
prolog_path511 = WshShell.RegRead("HKLM\\Software\\IC-Parc\\Eclipse\\5.11\\ECLIPSEDIR") + "\\lib\\i386_nt\\eclipse.exe";
|
||||
}
|
||||
catch(e) {
|
||||
prolog_path511 = "not_installed.lgt";
|
||||
}
|
||||
try {
|
||||
prolog_path510 = WshShell.RegRead("HKLM\\Software\\IC-Parc\\Eclipse\\5.10\\ECLIPSEDIR") + "\\lib\\i386_nt\\eclipse.exe";
|
||||
}
|
||||
catch(e) {
|
||||
prolog_path510 = "not_installed.lgt";
|
||||
}
|
||||
|
||||
var FSObject = new ActiveXObject("Scripting.FileSystemObject");
|
||||
|
||||
if (!FSObject.FileExists(prolog_path)) {
|
||||
if (FSObject.FileExists(prolog_path511)) {
|
||||
prolog_path = prolog_path511;
|
||||
}
|
||||
else if (FSObject.FileExists(prolog_path510)) {
|
||||
prolog_path = prolog_path510;
|
||||
}
|
||||
else {
|
||||
WScript.Echo("Error! Cannot find eclipse.exe at the expected place!");
|
||||
WScript.Echo("Please, edit the script and update the location of the eclipse.exe executable.");
|
||||
WScript.Quit(1);
|
||||
@@ -104,8 +125,8 @@ WScript.Echo('Start Menu Programs. Make sure that the environment variables');
|
||||
WScript.Echo('LOGTALKHOME and LOGTALKUSER are defined for all users wishing');
|
||||
WScript.Echo('to use the shortcut.');
|
||||
WScript.Echo('');
|
||||
WScript.Echo('Users must run the batch script "cplgtdirs" before using the');
|
||||
WScript.Echo('"Logtalk - ECLiPSe" shortcut.');
|
||||
WScript.Echo('Users must run the batch script "cplgtdirs" once before using');
|
||||
WScript.Echo('the "Logtalk - ECLiPSe" shortcut.');
|
||||
WScript.Echo('');
|
||||
|
||||
WScript.Quit(0);
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.28.2
|
||||
## Release 2.29.1
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.28.2
|
||||
// Release 2.29.1
|
||||
//
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
@@ -94,8 +94,8 @@ WScript.Echo('Start Menu Programs. Make sure that the environment variables');
|
||||
WScript.Echo('LOGTALKHOME and LOGTALKUSER are defined for all users wishing');
|
||||
WScript.Echo('to use the shortcut.');
|
||||
WScript.Echo('');
|
||||
WScript.Echo('Users must run the batch script "cplgtdirs" before using the');
|
||||
WScript.Echo('"Logtalk - GNU Prolog" shortcut.');
|
||||
WScript.Echo('Users must run the batch script "cplgtdirs" once before using');
|
||||
WScript.Echo('the "Logtalk - GNU Prolog" shortcut.');
|
||||
WScript.Echo('');
|
||||
|
||||
WScript.Quit(0);
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.28.2
|
||||
## Release 2.29.1
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.28.2
|
||||
// Release 2.29.1
|
||||
//
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
@@ -95,8 +95,8 @@ WScript.Echo('Start Menu Programs. Make sure that the environment variables');
|
||||
WScript.Echo('LOGTALKHOME and LOGTALKUSER are defined for all users wishing');
|
||||
WScript.Echo('to use the shortcut.');
|
||||
WScript.Echo('');
|
||||
WScript.Echo('Users must run the batch script "cplgtdirs" before using the');
|
||||
WScript.Echo('"Logtalk - K-Prolog" shortcut.');
|
||||
WScript.Echo('Users must run the batch script "cplgtdirs" once before using');
|
||||
WScript.Echo('the "Logtalk - K-Prolog" shortcut.');
|
||||
WScript.Echo('');
|
||||
|
||||
WScript.Quit(0);
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.28.2
|
||||
## Release 2.29.1
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.28.2
|
||||
## Release 2.29.1
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.28.2
|
||||
// Release 2.29.1
|
||||
//
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
@@ -110,7 +110,7 @@ WScript.Echo('the Start Menu Programs. Make sure that the environment variables'
|
||||
WScript.Echo('LOGTALKHOME and LOGTALKUSER are defined for all users wishing');
|
||||
WScript.Echo('to use the shortcut.');
|
||||
WScript.Echo('');
|
||||
WScript.Echo('Users must run the batch script "cplgtdirs" before using the');
|
||||
WScript.Echo('Users must run the batch script "cplgtdirs" once before using the');
|
||||
WScript.Echo('"Logtalk - SICStus Prolog" shortcut.');
|
||||
WScript.Echo('');
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.28.2
|
||||
## Release 2.29.1
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.28.2
|
||||
// Release 2.29.1
|
||||
//
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
@@ -59,6 +59,8 @@ var f1 = FSObject.CreateTextFile(logtalk_home + "\\bin\\logtalk_comp_swi.pl", tr
|
||||
var f2 = FSObject.OpenTextFile(logtalk_home + "\\compiler\\logtalk.pl", 1);
|
||||
var line;
|
||||
|
||||
f1.WriteLine(":- set_prolog_flag(iso, true).");
|
||||
f1.WriteLine(":- set_prolog_flag(generate_debug_info, false).");
|
||||
f1.WriteLine(":- system_module.");
|
||||
while (!f2.AtEndOfStream) {
|
||||
line = f2.ReadLine();
|
||||
@@ -96,8 +98,8 @@ WScript.Echo('Start Menu Programs. Make sure that the environment variables');
|
||||
WScript.Echo('LOGTALKHOME and LOGTALKUSER are defined for all users wishing');
|
||||
WScript.Echo('to use the shortcut.');
|
||||
WScript.Echo('');
|
||||
WScript.Echo('Users must run the batch script "cplgtdirs" before using the');
|
||||
WScript.Echo('"Logtalk - SWI-Prolog" shortcut.');
|
||||
WScript.Echo('Users must run the batch script "cplgtdirs" once before using');
|
||||
WScript.Echo('the "Logtalk - SWI-Prolog" shortcut.');
|
||||
WScript.Echo('');
|
||||
|
||||
WScript.Quit(0);
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.28.2
|
||||
## Release 2.29.1
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
@@ -41,7 +41,8 @@ fi
|
||||
cd "$LOGTALKHOME"
|
||||
mkdir -p bin
|
||||
cd bin
|
||||
echo ":- set_prolog_flag(generate_debug_info, false)." > logtalk_comp_swi.pl
|
||||
echo ":- set_prolog_flag(iso, true)." > logtalk_comp_swi.pl
|
||||
echo ":- set_prolog_flag(generate_debug_info, false)." >> logtalk_comp_swi.pl
|
||||
echo ":- system_module." >> logtalk_comp_swi.pl
|
||||
cat ../compiler/logtalk.pl >> logtalk_comp_swi.pl
|
||||
echo ":- consult('\$LOGTALKUSER/configs/swi.config')." > logtalk_swi.pl
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.28.2
|
||||
// Release 2.29.1
|
||||
//
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
@@ -88,7 +88,7 @@ WScript.Echo('');
|
||||
WScript.Echo('The first call to the shortcut must be made by a user with');
|
||||
WScript.Echo('administrative rights.');
|
||||
WScript.Echo('');
|
||||
WScript.Echo('Users must run the batch script "cplgtdirs" before using the');
|
||||
WScript.Echo('Users must run the batch script "cplgtdirs" once before using the');
|
||||
WScript.Echo('"Logtalk - XSB" shortcut. Users must edit the contents of the');
|
||||
WScript.Echo('"libpaths_no_env_var.pl" file on the "libpaths" directory in order');
|
||||
WScript.Echo('to replace all occurrences of the LOGTALKUSER environment variable');
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.28.2
|
||||
## Release 2.29.1
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
@@ -54,5 +54,5 @@ echo "sudo."
|
||||
echo
|
||||
echo "Users should ensure that the environment variables LOGTALKHOME"
|
||||
echo "and LOGTALKUSER are defined and then run the \"cplgtdirs\" script"
|
||||
echo "prior to using the xsblgt script."
|
||||
echo "once prior to using the xsblgt script."
|
||||
echo
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.28.2
|
||||
// Release 2.29.1
|
||||
//
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
@@ -85,7 +85,7 @@ WScript.Echo('Done. The "Logtalk - YAP" shortcut was been added to the Start Men
|
||||
WScript.Echo('Programs. Make sure that the environment variables LOGTALKHOME and');
|
||||
WScript.Echo('LOGTALKUSER are defined for all users wishing to use the shortcut.');
|
||||
WScript.Echo('');
|
||||
WScript.Echo('Users must run the batch script "cplgtdirs" before using the');
|
||||
WScript.Echo('Users must run the batch script "cplgtdirs" once before using the');
|
||||
WScript.Echo('"Logtalk - YAP" shortcut.');
|
||||
WScript.Echo('');
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.28.2
|
||||
## Release 2.29.1
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
|
@@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.28.2
|
||||
// Release 2.29.1
|
||||
//
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
## =================================================================
|
||||
## Logtalk - Object oriented extension to Prolog
|
||||
## Release 2.28.2
|
||||
## Release 2.29.1
|
||||
##
|
||||
## Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
## =================================================================
|
||||
@@ -40,72 +40,72 @@ fi
|
||||
|
||||
./make_bplgt.sh $prefix > /dev/null 2> /dev/null
|
||||
if [ $? = 0 ] ; then
|
||||
echo "bplgt script created"
|
||||
echo "bplgt script created (B-Prolog integration script)"
|
||||
else
|
||||
echo "bplgt script creation failed"
|
||||
echo "bplgt script creation failed (B-Prolog integration script)"
|
||||
fi
|
||||
|
||||
./make_ciaolgt.sh $prefix > /dev/null 2> /dev/null
|
||||
if [ $? = 0 ] ; then
|
||||
echo "ciaolgt script created"
|
||||
echo "ciaolgt script created (Ciao Prolog integration script)"
|
||||
else
|
||||
echo "ciaolgt script creation failed"
|
||||
echo "ciaolgt script creation failed (Ciao Prolog integration script)"
|
||||
fi
|
||||
|
||||
./make_eclipselgt.sh $prefix > /dev/null 2> /dev/null
|
||||
if [ $? = 0 ] ; then
|
||||
echo "eclipselgt script created"
|
||||
echo "eclipselgt script created (ECLiPSe integration script)"
|
||||
else
|
||||
echo "eclipselgt script creation failed"
|
||||
echo "eclipselgt script creation failed (ECLiPSe integration script)"
|
||||
fi
|
||||
|
||||
./make_gplgt.sh $prefix > /dev/null 2> /dev/null
|
||||
if [ $? = 0 ] ; then
|
||||
echo "gplgt script created"
|
||||
echo "gplgt script created (GNU Prolog integration script)"
|
||||
else
|
||||
echo "gplgt script creation failed"
|
||||
echo "gplgt script creation failed (GNU Prolog integration script)"
|
||||
fi
|
||||
|
||||
./make_plclgt.sh $prefix > /dev/null 2> /dev/null
|
||||
if [ $? = 0 ] ; then
|
||||
echo "plclgt script created"
|
||||
echo "plclgt script created (K-Prolog integration script)"
|
||||
else
|
||||
echo "plclgt script creation failed"
|
||||
echo "plclgt script creation failed (K-Prolog integration script)"
|
||||
fi
|
||||
|
||||
./make_qplgt.sh $prefix > /dev/null 2> /dev/null
|
||||
if [ $? = 0 ] ; then
|
||||
echo "qplgt script created"
|
||||
echo "qplgt script created (Qu-Prolog integration script)"
|
||||
else
|
||||
echo "qplgt script creation failed"
|
||||
echo "qplgt script creation failed (Qu-Prolog integration script)"
|
||||
fi
|
||||
|
||||
./make_sicstuslgt.sh $prefix > /dev/null 2> /dev/null
|
||||
if [ $? = 0 ] ; then
|
||||
echo "sicstuslgt script created"
|
||||
echo "sicstuslgt script created (SICStus Prolog integration script)"
|
||||
else
|
||||
echo "sicstuslgt script creation failed"
|
||||
echo "sicstuslgt script creation failed (SICStus Prolog integration script)"
|
||||
fi
|
||||
|
||||
./make_swilgt.sh $prefix > /dev/null 2> /dev/null
|
||||
if [ $? = 0 ] ; then
|
||||
echo "swilgt script created"
|
||||
echo "swilgt script created (SWI-Prolog integration script)"
|
||||
else
|
||||
echo "swilgt script creation failed"
|
||||
echo "swilgt script creation failed (SWI-Prolog integration script)"
|
||||
fi
|
||||
|
||||
./make_xsblgt.sh $prefix > /dev/null 2> /dev/null
|
||||
if [ $? = 0 ] ; then
|
||||
echo "xsblgt script created"
|
||||
echo "xsblgt script created (XSB integration script)"
|
||||
else
|
||||
echo "xsblgt script creation failed"
|
||||
echo "xsblgt script creation failed (XSB integration script)"
|
||||
fi
|
||||
|
||||
./make_yaplgt.sh $prefix > /dev/null 2> /dev/null
|
||||
if [ $? = 0 ] ; then
|
||||
echo "yaplgt script created"
|
||||
echo "yaplgt script created (YAP integration script)"
|
||||
else
|
||||
echo "yaplgt script creation failed"
|
||||
echo "yaplgt script creation failed (YAP integration script)"
|
||||
fi
|
||||
|
||||
echo
|
||||
|
9
Logtalk/scripts/windows/NOTES.txt
Normal file
9
Logtalk/scripts/windows/NOTES.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.1
|
||||
|
||||
Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
This directory contains files used when building Windows installers.
|
209
Logtalk/scripts/windows/logtalk.iss
Normal file
209
Logtalk/scripts/windows/logtalk.iss
Normal file
@@ -0,0 +1,209 @@
|
||||
; Script generated by the Inno Setup Script Wizard.
|
||||
|
||||
#define MyAppName "Logtalk"
|
||||
#define MyAppVerName "Logtalk 2.29.1"
|
||||
#define MyAppPublisher "Logtalk.org"
|
||||
#define MyAppURL "http://logtalk.org"
|
||||
#define MyAppUrlName "Logtalk Web Site.url"
|
||||
#define MyAppRegURL "http://logtalk.org/regform.html"
|
||||
#define MyAppRegUrlName "Logtalk Registration.url"
|
||||
|
||||
#define LOGTALKHOME "{reg:HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment,LOGTALKHOME|{pf}\Logtalk}"
|
||||
#define LOGTALKUSER "{reg:HKCU\Environment,LOGTALKUSER|{userdocs}\Logtalk}"
|
||||
|
||||
[Setup]
|
||||
AppName={#MyAppName}
|
||||
AppVerName={#MyAppVerName}
|
||||
AppPublisher={#MyAppPublisher}
|
||||
AppPublisherURL={#MyAppURL}
|
||||
AppSupportURL={#MyAppURL}
|
||||
AppUpdatesURL={#MyAppURL}
|
||||
ChangesEnvironment=yes
|
||||
DefaultDirName={#LOGTALKHOME}
|
||||
DefaultGroupName={#MyAppName}
|
||||
DisableProgramGroupPage=yes
|
||||
LicenseFile=C:\logtalk\LICENSE.txt
|
||||
InfoBeforeFile=C:\logtalk\README.txt
|
||||
OutputBaseFilename=lgt2291
|
||||
Compression=lzma
|
||||
SolidCompression=yes
|
||||
PrivilegesRequired=none
|
||||
|
||||
VersionInfoVersion=2.29.1
|
||||
VersionInfoCopyright=<3D> Paulo Moura, 1998-2006
|
||||
|
||||
AllowRootDirectory=yes
|
||||
UninstallFilesDir="{userdocs}\Logtalk uninstaller"
|
||||
|
||||
MinVersion=0,5.0
|
||||
|
||||
[Types]
|
||||
Name: "full"; Description: "Full installation (recommended)"
|
||||
Name: "base"; Description: "Base system installation"
|
||||
Name: "user"; Description: "User data files installation (must be run by all end-users)"
|
||||
Name: "prolog"; Description: "Prolog integration (see documentation for compatibility details)"
|
||||
Name: "custom"; Description: "Custom installation"; Flags: iscustom
|
||||
|
||||
[Components]
|
||||
Name: "base"; Description: "Base system"; Types: full base custom; Flags: disablenouninstallwarning
|
||||
Name: "user"; Description: "User data files"; Types: full user custom; Flags: checkablealone disablenouninstallwarning
|
||||
Name: "user\backup"; Description: "Backup current user data files"; Types: full user custom; Flags: disablenouninstallwarning
|
||||
Name: "prolog"; Description: "Prolog integration"; Types: full prolog custom; Flags: disablenouninstallwarning
|
||||
Name: "prolog\bp"; Description: "B-Prolog integration (version 6.9 or later)"; Types: full prolog custom; Flags: disablenouninstallwarning
|
||||
Name: "prolog\ciao"; Description: "Ciao Prolog integration (version 1.10#5 or later)"; Types: full prolog custom; Flags: disablenouninstallwarning
|
||||
Name: "prolog\eclipse"; Description: "ECLiPSe integration (version 5.10#26 or later)"; Types: full prolog custom; Flags: disablenouninstallwarning
|
||||
Name: "prolog\gprolog"; Description: "GNU Prolog integration (version 1.2.16 or later)"; Types: full prolog custom; Flags: disablenouninstallwarning
|
||||
Name: "prolog\plc"; Description: "K-Prolog integration (version 5.1.4 or later)"; Types: full prolog custom; Flags: disablenouninstallwarning
|
||||
Name: "prolog\sicstus"; Description: "SICStus Prolog integration (versions 3.12.x, 4.0)"; Types: full prolog custom; Flags: disablenouninstallwarning
|
||||
Name: "prolog\swi"; Description: "SWI-Prolog integration (version 5.6.16 or later)"; Types: full prolog custom; Flags: disablenouninstallwarning
|
||||
Name: "prolog\xsb"; Description: "XSB integration (version 3.0 or later)"; Types: full prolog custom; Flags: disablenouninstallwarning
|
||||
Name: "prolog\yap"; Description: "YAP integration (version 5.1.1 or later)"; Types: full prolog custom; Flags: disablenouninstallwarning
|
||||
|
||||
[Tasks]
|
||||
Name: registration; Description: "&Register {#MyAppName} (opens a web page; requires an Internet connection)"; Components: base user
|
||||
Name: shortcut; Description: "&Create a desktop shortcut to the Logtalk user folder"; Components: user
|
||||
|
||||
[Languages]
|
||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||
|
||||
[Messages]
|
||||
BeveledLabel=Logtalk 2.29.1 <20> Paulo Moura, 1998-2006
|
||||
|
||||
[Dirs]
|
||||
Name: {code:GetLgtUserDir}; Components: user; Flags: uninsneveruninstall
|
||||
Name: "{userdocs}\Logtalk uninstaller"
|
||||
|
||||
[Files]
|
||||
Source: "C:\logtalk\*"; Excludes: ".*,CVS"; DestDir: "{app}"; Components: base; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
|
||||
Source: "C:\logtalk\configs\*"; Excludes: ".*,CVS"; DestDir: "{code:GetLgtUserDir}\configs"; Components: user; Flags: ignoreversion recursesubdirs createallsubdirs uninsneveruninstall
|
||||
Source: "C:\logtalk\contributions\*"; Excludes: ".*,CVS"; DestDir: "{code:GetLgtUserDir}\contributions"; Components: user; Flags: ignoreversion recursesubdirs createallsubdirs uninsneveruninstall
|
||||
Source: "C:\logtalk\examples\*"; Excludes: ".*,CVS"; DestDir: "{code:GetLgtUserDir}\examples"; Components: user; Flags: ignoreversion recursesubdirs createallsubdirs uninsneveruninstall
|
||||
Source: "C:\logtalk\libpaths\*"; Excludes: ".*,CVS"; DestDir: "{code:GetLgtUserDir}\libpaths"; Components: user; Flags: ignoreversion recursesubdirs createallsubdirs uninsneveruninstall
|
||||
Source: "C:\logtalk\library\*"; Excludes: ".*,CVS"; DestDir: "{code:GetLgtUserDir}\library"; Components: user; Flags: ignoreversion recursesubdirs createallsubdirs uninsneveruninstall
|
||||
Source: "C:\logtalk\xml\*"; Excludes: ".*,CVS"; DestDir: "{code:GetLgtUserDir}\xml"; Components: user; Flags: ignoreversion recursesubdirs createallsubdirs uninsneveruninstall
|
||||
|
||||
Source: "C:\logtalk\configs\amzi.config"; DestDir: "{code:GetLgtUserDir}\configs"; DestName: "amzi.pro"; Components: user; Flags: ignoreversion uninsneveruninstall
|
||||
Source: "C:\logtalk\configs\xsb.config"; DestDir: "{code:GetLgtUserDir}\configs"; DestName: "xsb.pl"; Components: user; Flags: ignoreversion uninsneveruninstall
|
||||
Source: "C:\logtalk\libpaths\libpaths.pl"; DestDir: "{code:GetLgtUserDir}\libpaths"; DestName: "libpaths_no_env_var.pl"; Components: user; Flags: ignoreversion uninsneveruninstall
|
||||
|
||||
Source: "C:\logtalk\scripts\*.bat"; DestDir: "{win}"; Components: base; Flags: ignoreversion
|
||||
Source: "C:\logtalk\xml\*.bat"; DestDir: "{win}"; Components: base; Flags: ignoreversion
|
||||
|
||||
[INI]
|
||||
Filename: "{app}\{#MyAppUrlName}"; Section: "InternetShortcut"; Key: "URL"; String: "{#MyAppURL}"; Components: base
|
||||
Filename: "{app}\{#MyAppRegUrlName}"; Section: "InternetShortcut"; Key: "URL"; String: "{#MyAppRegURL}"; Components: base
|
||||
|
||||
[Icons]
|
||||
Name: "{group}\{#MyAppName} Bibliography"; Filename: "{app}\BIBLIOGRAPHY.bib"; Components: base
|
||||
Name: "{group}\{#MyAppName} Documentation"; Filename: "{app}\manuals\index.html"; Components: base
|
||||
Name: "{group}\{#MyAppName} License"; Filename: "{app}\LICENSE.txt"; Components: base
|
||||
Name: "{group}\{#MyAppName} Release Notes"; Filename: "{app}\RELEASE_NOTES.txt"; Components: base
|
||||
Name: "{group}\{#MyAppName} Read Me"; Filename: "{app}\README.txt"; Components: base
|
||||
Name: "{group}\{#MyAppName} Customization instructions"; Filename: "{app}\CUSTOMIZE.txt"; Components: base
|
||||
|
||||
Name: "{group}\{#MyAppName} Web Site"; Filename: "{#MyAppUrl}"; Components: base
|
||||
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"; Components: base
|
||||
|
||||
Name: "{code:GetLgtUserDir}\manuals"; Filename: "{app}\manuals"; Components: user
|
||||
Name: "{code:GetLgtUserDir}\wenv"; Filename: "{app}\wenv"; Components: user
|
||||
|
||||
Name: "{userdesktop}\Logtalk user files"; Filename: "{code:GetLgtUserDir}"; Components: user; Tasks: shortcut
|
||||
|
||||
[Registry]
|
||||
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: expandsz; ValueName: "LOGTALKHOME"; ValueData: "{app}"; Components: base; Flags: deletevalue uninsdeletevalue
|
||||
Root: HKCU; Subkey: "Environment"; ValueType: expandsz; ValueName: "LOGTALKUSER"; ValueData: "{code:GetLgtUserDir}"; Flags: deletevalue uninsdeletevalue
|
||||
|
||||
[Run]
|
||||
Filename: "{cmd}"; Parameters: "/C set LOGTALKHOME={app} & cscript ""{app}\scripts\make_bplgt.js"""; Description: "B-Prolog integration"; Components: prolog\bp
|
||||
Filename: "{cmd}"; Parameters: "/C set LOGTALKHOME={app} & cscript ""{app}\scripts\make_ciaolgt.js"""; Description: "Ciao Prolog integration"; Components: prolog\ciao
|
||||
Filename: "{cmd}"; Parameters: "/C set LOGTALKHOME={app} & cscript ""{app}\scripts\make_eclipselgt.js"""; Description: "ECLiPSe integration"; Components: prolog\eclipse
|
||||
Filename: "{cmd}"; Parameters: "/C set LOGTALKHOME={app} & cscript ""{app}\scripts\make_gplgt.js"""; Description: "GNU Prolog integration"; Components: prolog\gprolog
|
||||
Filename: "{cmd}"; Parameters: "/C set LOGTALKHOME={app} & cscript ""{app}\scripts\make_plclgt.js"""; Description: "K-Prolog integration"; Components: prolog\plc
|
||||
Filename: "{cmd}"; Parameters: "/C set LOGTALKHOME={app} & cscript ""{app}\scripts\make_sicstuslgt.js"""; Description: "SICStus Prolog integration"; Components: prolog\sicstus
|
||||
Filename: "{cmd}"; Parameters: "/C set LOGTALKHOME={app} & cscript ""{app}\scripts\make_swilgt.js"""; Description: "SWI-Prolog integration"; Components: prolog\swi
|
||||
Filename: "{cmd}"; Parameters: "/C set LOGTALKHOME={app} & cscript ""{app}\scripts\make_xsblgt.js"""; Description: "XSB integration"; Components: prolog\xsb
|
||||
Filename: "{cmd}"; Parameters: "/C set LOGTALKHOME={app} & cscript ""{app}\scripts\make_yaplgt.js"""; Description: "YAP integration"; Components: prolog\yap
|
||||
|
||||
Filename: "{app}\RELEASE_NOTES.txt"; Description: "View the release notes"; Components: base user; Flags: postinstall shellexec skipifsilent
|
||||
Filename: "{app}\CUSTOMIZE.txt"; Description: "Read the customization instructions for completing your setup"; Components: base user; Flags: postinstall shellexec skipifsilent
|
||||
|
||||
Filename: "{app}\{#MyAppRegUrlName}"; Flags: shellexec nowait; Tasks: registration
|
||||
|
||||
[UninstallDelete]
|
||||
Type: filesandordirs; Name: "{app}"; Components: base
|
||||
Type: filesandordirs; Name: "{group}"; Components: base
|
||||
|
||||
[Code]
|
||||
var
|
||||
LgtUserDirPage: TInputDirWizardPage;
|
||||
WarningPage: TOutputMsgWizardPage;
|
||||
Explanation, Warning, Scripts: String;
|
||||
|
||||
procedure InitializeWizard;
|
||||
begin
|
||||
Explanation := 'Select the folder in which Setup should install Logtalk user data files, then click Next.'
|
||||
+ Chr(13) + Chr(13)
|
||||
+ 'These files allows each user to independently customize Logtalk and to freely modify the provided programming examples.'
|
||||
+ Chr(13) + Chr(13)
|
||||
+ 'A copy of these files must exist in the user home folder in order to use the Logtalk-Prolog integration scripts available from the Start Menu.'
|
||||
+ Chr(13) + Chr(13)
|
||||
+ 'Addtional end-users may use this installer to make a copy of these files on their home folders after a full installation of Logtalk.';
|
||||
LgtUserDirPage := CreateInputDirPage(wpSelectDir,
|
||||
'Select folder for Logtalk user data files', 'Where should Logtalk user data files be installed?',
|
||||
Explanation,
|
||||
False, 'New Folder');
|
||||
LgtUserDirPage.Add('');
|
||||
LgtUserDirPage.Values[0] := ExpandConstant('{#LOGTALKUSER}');
|
||||
if not IsAdminLoggedOn then
|
||||
begin
|
||||
Warning := 'Full installation of Logtalk requires an administrative user.'
|
||||
+ Chr(13) + Chr(13)
|
||||
+ 'If the base Logtalk system is already installed, you may proceed in order to setup Logtalk for you as an end-user.'
|
||||
+ Chr(13) + Chr(13)
|
||||
+ 'If Logtalk is already set for you, this installer will make a backup copy of your current files (if you choose the same installation folder) and will restore all user data files to their default, pristine state.';
|
||||
WarningPage := CreateOutputMsgPage(wpWelcome,
|
||||
'Information', 'Please read the following important information before continuing.', Warning);
|
||||
end
|
||||
end;
|
||||
|
||||
function GetLgtUserDir(Param: String): String;
|
||||
begin
|
||||
Result := LgtUserDirPage.Values[0]
|
||||
end;
|
||||
|
||||
function GetCurrentDate(Param: String): String;
|
||||
begin
|
||||
Result := GetDateTimeString('dddddd tt', '-', '-')
|
||||
end;
|
||||
|
||||
function ShouldSkipPage(PageID: Integer): Boolean;
|
||||
begin
|
||||
if (PageID = wpSelectDir) and not IsAdminLoggedOn then
|
||||
Result := True
|
||||
else if (PageID = wpSelectComponents) and not IsAdminLoggedOn then
|
||||
begin
|
||||
WizardForm.TypesCombo.ItemIndex := 2;
|
||||
WizardForm.TypesCombo.OnChange(nil);
|
||||
Result := True
|
||||
end
|
||||
else if (PageID = wpReady) and not IsAdminLoggedOn then
|
||||
Result := True
|
||||
else
|
||||
Result := False;
|
||||
end;
|
||||
|
||||
procedure CurStepChanged(CurStep: TSetupStep);
|
||||
begin
|
||||
if (CurStep = ssInstall) and DirExists(LgtUserDirPage.Values[0]) and (pos('backup', WizardSelectedComponents(False)) > 0) then
|
||||
RenameFile(LgtUserDirPage.Values[0], LgtUserDirPage.Values[0] + ' backup ' + GetDateTimeString('dddddd tt', '-', '-'));
|
||||
if (CurStep = ssInstall) and (pos('prolog', WizardSelectedComponents(False)) > 0) then
|
||||
begin
|
||||
Scripts := 'The installer needs to run a set of JScripts scripts within command shells' + Chr(13) +
|
||||
'in order to integrate Logtalk with your installed Prolog compilers.' + Chr(13) + Chr(13) +
|
||||
'These scripts require WSH 5.6 (or later version) to be installed.' + Chr(13) + Chr(13) +
|
||||
'Make sure that any security software you may have installed do not block' + Chr(13) +
|
||||
'the execution of the scripts.';
|
||||
MsgBox(Scripts, mbInformation, MB_OK)
|
||||
end
|
||||
end;
|
Reference in New Issue
Block a user