compile_everything.anubis 1.05 KB

                        The Anubis Project

     This file contains a program for compiling all source files of the 
     official released Anubis library. 


read official_released_library.anubis
read tools/basis.anubis


define One
   compile
   (
     String              dir_path,
     AnubisLibraryItem   item, 
   ) =
   if item is 
   {
     anubis_file(name)        then 
       forget((Maybe(Word8))execute(success(dir_path),"anubis",["-nocolor", name])),  
     anubis_c_file(name)      then 
       forget((Maybe(Word8))execute(success(dir_path),"anubis",["-nocolor", name])),  
     anubis_font(name)        then unique,
     apg_file(name)           then unique,
     image(name)              then unique,
     text_file(name)          then unique,
     pdf_file(name)           then unique,
     directory(name, content) then 
       map_forget((AnubisLibraryItem i) |-> compile(dir_path+"/"+name,i),content)
   }. 


global define One
   compile_everything
   (
     List(String) args
   ) =
   compile(anubis_directory,the_official_Anubis_library).