[SCM] Lisaac compiler branch, master+stable, updated. lisaac-0.12-606-gf445725

Mildred Ki'Lya silkensedai at online.fr
Mon Mar 1 00:35:03 UTC 2010


The following commit has been merged in the master+stable branch:
commit 790cf55c1f8f68c112c26f396e8a705af5fab065
Author: Mildred Ki'Lya <silkensedai at online.fr>
Date:   Sat Sep 5 18:44:06 2009 +0200

    Copy the shorter to bin if -valid is given on the command line

diff --git a/src/make.lip b/src/make.lip
index 7dbf052..3fa2f03 100644
--- a/src/make.lip
+++ b/src/make.lip
@@ -25,7 +25,9 @@ Section Inherit
 Section Private
 
   + is_valid:BOOLEAN;
-
+  
+  + is_shorter:BOOLEAN;
+  
   - src_path <-
   (
     path "./";
@@ -76,8 +78,12 @@ Section Private
   (
     general_back_end;
     (is_valid).if {
-      execute "cp lisaac.c ../bin/.";
-      execute "cp lisaac ../bin/.";
+      (is_shorter).if {
+        execute "cp shorter ../bin/.";
+      } else {
+        execute "cp lisaac.c ../bin/.";
+        execute "cp lisaac ../bin/.";
+      };
     };
   );
 
@@ -93,6 +99,7 @@ Section Public
   // Compile the shorter.
   (
     shorter_path;
+    is_shorter := TRUE;
   );
 
   - valid <-

-- 
Lisaac compiler



More information about the Lisaac-commits mailing list