home *** CD-ROM | disk | FTP | other *** search
/ The Amiga Game Guide / AmigaGameGuide_CD.iso / Amiga / Games-AddOns / cannon_editor / CFME_Install < prev    next >
Text File  |  1977-12-31  |  5KB  |  196 lines

  1. (
  2.  ;prompt strings
  3.  (set #hello "CFME installation utility\nPlease read help before doing any choice")
  4.  (set #what1 "What do you wish to install?")
  5.  (set #where1 "Where do you want to have CFME installed?\nA dir will be created here")
  6.  (set #copy1 "Copying CFME, guide and config files")
  7.  (set #copy2 "Copying DATA/ files")
  8.  (set #copy3 "Copying Utilities file")
  9.  (set #ctlog1 "Where do you want to have catalogs file installed?")
  10.  (set #ctlog2 "What of these file should be copied - english is the default")
  11.  (set #map1 "Where do you want to install maps?")
  12.  (set #map2 "Which maps should be installed")
  13.  (set #exe1 "Now we're about to install exe file")
  14.  (set #exe6 "Copying older exe file")
  15.  (set #exe7 "Copying new exe file")
  16.  (set #exe3 "Choose the dir where is the older exe file")
  17.  (set #exe4 "Chose the dir where you want to copy the older exe file")
  18.  (set #exe5 "Chose the dir where you want to copy NEW fodder file")
  19.  ;help strings
  20.  (set #h1str1
  21.    "I'm asking you want you want to be installed.\nYou may choose (or not) to install CFME\n"
  22.  )
  23.  (set #h1str2 ;20
  24.    "You may select to not to install CFME if you \nalready unpacked CFME archive in the right directory\n"
  25.  )
  26.  (set #h1str3
  27.    "I included two example mission, named map1 and map2\nDo you want to have them installed ?\n"
  28.  )
  29.  (set #h1str4
  30.    "Fodder executable is necessary if you want to change\nobjectives and difficult levels\n"
  31.  )
  32.  (set #h1str5
  33.    "CFME will work without new executable too\nBut you won't be able to edits objectives."
  34.  )
  35.  ;options
  36.  (set #i1  "CFME")
  37.  (set #i2  "Example missions")
  38.  (set #i3  "Fodder executable")
  39.  (set #loc1 "LOCALE:Catalogs/")
  40.  (set #loc2 "data/catalogs/")
  41.  (set #omap1 "mapm1.map")
  42.  (set #omap2 "mapm2.map")
  43.  (message #hello)
  44.  (set #ch
  45.    (askoptions
  46.      (choices #i1 #i2 #i3)
  47.      (prompt #what1)
  48.      (help (cat #h1str1 #h1str2 #h1str3 #h1str4 #h1str5))
  49.      (default %111)
  50.    )             ;47
  51.  )
  52.  (if (= (BITAND #ch %001) %001)
  53.    (  ;then
  54.      (set #cfmedir
  55.        (askdir
  56.          (help @askdir-help)
  57.          (prompt #where1)
  58.          (default "Ram:")
  59.          (disk)
  60.        )
  61.      )
  62.      (set #cfmedir (tackon #cfmedir "Cannon_Editor") )
  63.      (makedir #cfmedir (infos))
  64.      (copyfiles
  65.        (prompt #copy1)
  66.        (source (pathonly @icon) )
  67.        (help @copyfiles-help)
  68.        (dest #cfmedir)
  69.        (files)
  70.        (all)
  71.        ;(confirm)
  72.      )              ;69
  73.      (makedir (tackon #cfmedir "Data/"))
  74.      (complete 15)
  75.      (copyfiles
  76.        (prompt #copy2)
  77.        (source (tackon (pathonly @icon) "Data/" ))
  78.        (help @copyfiles-help)
  79.        (dest (tackon #cfmedir "Data/"))
  80.        (files)
  81.        (all)
  82.        ;(confirm)
  83.      )
  84.      (makedir (tackon #cfmedir "Utilities/"))
  85.      (complete 50)
  86.      (copyfiles
  87.        (prompt #copy3)
  88.        (source (tackon (pathonly @icon) "Utilities/" ))
  89.        (help @copyfiles-help)
  90.        (dest (tackon #cfmedir "Utilities/"))
  91.        (files)
  92.        (all)
  93.        ;(confirm)
  94.      )
  95.      (complete 55)     ;80
  96.      (set #ch2
  97.        (askchoice
  98.          (choices #loc1 #loc2)
  99.          (prompt #ctlog1)
  100.          (help @askchoice-help)
  101.        )
  102.      )
  103.      (set #dest
  104.        (select #ch2 "LOCALE:Catalogs/" (tackon #cfmedir "data/Catalog"))
  105.      )
  106.      (makedir #dest)
  107.      (copyfiles
  108.        (prompt #ctlog2)
  109.        (source (tackon (pathonly @icon) "Data/Catalogs"))
  110.        (help @copyfiles-help)
  111.        (dest #dest)
  112.        ;(files)
  113.        (all)
  114.        (confirm)
  115.      )
  116.      (complete 60)        ;100
  117.    );end of then statement
  118.  ); endif
  119.  (if (= (BITAND #ch %010) %010)
  120.    ( ;then copy maps
  121.      (set #dest
  122.        (askdir
  123.          (help @askdir-help)
  124.          (prompt #map1)
  125.          (default "RAM:")
  126.          (disk)
  127.        )
  128.      )
  129.      (complete 65)
  130.      (copyfiles
  131.        (prompt #map2)
  132.        (source (tackon (pathonly @icon) "Examples/"))
  133.        (help @copyfiles-help)
  134.        (dest #dest)
  135.        (files)
  136.        (all)
  137.        (confirm)
  138.      )
  139.      (complete 70)
  140.    ) ;end of then statement
  141.  );end if
  142.  (if (= (BITAND #ch %100) %100)
  143.    ( ;then copy maps
  144.      (message #exe1)
  145.      (set #dest
  146.        (askdir
  147.          (help @askdir-help)
  148.          (prompt #exe3)
  149.          (default "RAM:")
  150.          (disk)
  151.        )
  152.      )
  153.      (complete 75)   ;138
  154.      (set #dest2
  155.        (askfile
  156.          (help @askfile-help)
  157.          (prompt #exe4)
  158.          (default (cat #dest ".old"))
  159.        )
  160.      )
  161.      (complete 80)
  162.      (copyfiles
  163.        (prompt #exe6)
  164.        (source (tackon #dest "fodder"))
  165.        (help @copyfiles-help)
  166.        (dest #dest2)
  167.        (files)
  168.        (confirm)
  169.      )
  170.      (complete 85)
  171.      (set #dest
  172.        (askdir
  173.          (help @askdir-help)
  174.          (prompt #exe5)
  175.          (default #dest)
  176.          (disk)
  177.        )
  178.      )
  179.      (complete 90)
  180.      (copyfiles
  181.        (prompt #exe7)
  182.        (source (tackon (pathonly @icon) "Exe/fodder"))
  183.        (help @copyfiles-help)
  184.        (dest (tackon #dest "fodder"))
  185.        (files)
  186.        (all)
  187.        (confirm)
  188.      )
  189.   ) ;end of then statement
  190.  );end if
  191.  
  192. (complete 100)
  193. (message "Fine!")
  194. )
  195.  
  196.