Logtalk 2.28.2 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1711 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// =================================================================
|
||||
// Logtalk - Object oriented extension to Prolog
|
||||
// Release 2.27.1
|
||||
// Release 2.28.2
|
||||
//
|
||||
// Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
||||
// =================================================================
|
||||
@@ -55,18 +55,26 @@ logtalk_home = logtalk_home.replace(/\\/g, "\\\\");
|
||||
if (!FSObject.FolderExists(logtalk_home + "\\bin"))
|
||||
FSObject.CreateFolder(logtalk_home + "\\bin");
|
||||
|
||||
var f = FSObject.CreateTextFile(logtalk_home + "\\bin\\logtalk_swi.pl", true);
|
||||
f.WriteLine(":- system_module.");
|
||||
f.Close();
|
||||
var f1 = FSObject.CreateTextFile(logtalk_home + "\\bin\\logtalk_comp_swi.pl", true);
|
||||
var f2 = FSObject.OpenTextFile(logtalk_home + "\\compiler\\logtalk.pl", 1);
|
||||
var line;
|
||||
|
||||
WshShell.Run("cmd /c type " + logtalk_home + "\\compiler\\logtalk.pl" + " >> " + logtalk_home + "\\bin\\logtalk_swi.pl", true);
|
||||
f1.WriteLine(":- system_module.");
|
||||
while (!f2.AtEndOfStream) {
|
||||
line = f2.ReadLine();
|
||||
f1.WriteLine(line);
|
||||
}
|
||||
|
||||
f = FSObject.CreateTextFile(logtalk_home + "\\bin\\logtalk_swi.rc", true);
|
||||
f1.Close();
|
||||
f2.Close();
|
||||
|
||||
f = FSObject.CreateTextFile(logtalk_home + "\\bin\\logtalk_swi.init", true);
|
||||
|
||||
f.WriteLine(":- consult('$LOGTALKUSER/configs/swihook.pl').");
|
||||
f.WriteLine(":- consult('$LOGTALKUSER/configs/swi.config').");
|
||||
f.WriteLine(":- consult('$LOGTALKHOME/bin/logtalk_swi.pl').");
|
||||
f.WriteLine(":- consult('$LOGTALKHOME/bin/logtalk_comp_swi.pl').");
|
||||
f.WriteLine(":- consult('$LOGTALKUSER/libpaths/libpaths.pl').");
|
||||
f.WriteLine(":- consult('$LOGTALKUSER/configs/swihook.pl').");
|
||||
f.WriteLine(":- consult('$LOGTALKUSER/configs/xpcehook.pl').");
|
||||
f.Close();
|
||||
|
||||
var ProgramsPath = WshShell.SpecialFolders("AllUsersPrograms");
|
||||
@@ -75,9 +83,9 @@ if (!FSObject.FolderExists(ProgramsPath + "\\Logtalk"))
|
||||
FSObject.CreateFolder(ProgramsPath + "\\Logtalk");
|
||||
|
||||
var link = WshShell.CreateShortcut(ProgramsPath + "\\Logtalk\\Logtalk - SWI-Prolog.lnk");
|
||||
link.Arguments = "-f %LOGTALKHOME%\\bin\\logtalk_swi.rc";
|
||||
link.Description = "Runs Logtalk with SWI-Prolog";
|
||||
link.IconLocation = "app.exe,1";
|
||||
link.Arguments = '-f "%LOGTALKHOME%\\bin\\logtalk_swi.init"';
|
||||
link.Description = 'Runs Logtalk with SWI-Prolog';
|
||||
link.IconLocation = 'app.exe,1';
|
||||
link.TargetPath = prolog_path;
|
||||
link.WindowStyle = 1;
|
||||
link.WorkingDirectory = logtalk_home;
|
||||
|
Reference in New Issue
Block a user