Logtalk 2.22.0 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1191 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.21.6
|
||||
// Release 2.22.0
|
||||
//
|
||||
// Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
@@ -50,11 +50,11 @@ if (!FSObject.FolderExists(logtalk_home + "\\bin"))
|
||||
|
||||
FSObject.CopyFile(logtalk_home + "\\configs\\gnu.config", logtalk_home + "\\bin\\gnu.pl");
|
||||
|
||||
var f = FSObject.CreateTextFile(logtalk_home + "\\bin\\logtalkgp.pl", true);
|
||||
var f = FSObject.CreateTextFile(logtalk_home + "\\bin\\logtalk_gp.pl", true);
|
||||
f.WriteLine(":- built_in.");
|
||||
f.Close();
|
||||
|
||||
WshShell.Run("cmd /c type " + logtalk_home + "\\compiler\\logtalk.pl" + " >> " + logtalk_home + "\\bin\\logtalkgp.pl", true);
|
||||
WshShell.Run("cmd /c type " + logtalk_home + "\\compiler\\logtalk.pl" + " >> " + logtalk_home + "\\bin\\logtalk_gp.pl", true);
|
||||
|
||||
var ProgramsPath = WshShell.SpecialFolders("AllUsersPrograms");
|
||||
|
||||
@@ -62,7 +62,7 @@ if (!FSObject.FolderExists(ProgramsPath + "\\Logtalk"))
|
||||
FSObject.CreateFolder(ProgramsPath + "\\Logtalk");
|
||||
|
||||
var link = WshShell.CreateShortcut(ProgramsPath + "\\Logtalk\\Logtalk - GNU Prolog.lnk");
|
||||
link.Arguments = "--init-goal \"['bin/gnu.pl', 'bin/logtalkgp.pl']\"";
|
||||
link.Arguments = "--init-goal \"['$LOGTALKUSER/configs/gnu.config', '$LOGTALKHOME/bin/logtalk_gp.pl', '$LOGTALKUSER/libpaths/libpaths.pl']\"";
|
||||
link.Description = "Runs Logtalk with GNU Prolog";
|
||||
link.IconLocation = "app.exe,1";
|
||||
link.TargetPath = prolog_path;
|
||||
@@ -71,8 +71,9 @@ link.WorkingDirectory = logtalk_home;
|
||||
link.Save();
|
||||
|
||||
WScript.Echo('Done. The "Logtalk - GNU Prolog" 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('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.Quit(0);
|
||||
|
Reference in New Issue
Block a user