home *** CD-ROM | disk | FTP | other *** search
/ Aminet 10 / aminetcdnumber101996.iso / Aminet / misc / edu / VerbeP15.lha / Install_Patch next >
Text File  |  1995-12-14  |  3KB  |  131 lines

  1. ; Installer script for Ensemble Verbes patch
  2. ; $VER: Install_Patch 1.1 (14.11.95)
  3. ; Changes from V1.0
  4. ;    Installs new catalog file
  5.  
  6. (procedure DOLOCALE
  7. (
  8.     (set n 0)
  9.     (while
  10.         (set language
  11.             (select n ;"dansk"
  12.                   ;"deutsch"
  13.                   "english"
  14.                   "español"
  15.                   "français"
  16.                   "italiano"
  17.                   ;"nederlands"
  18.                   "norsk"
  19.                   ;"português"
  20.                   ;"svenska"
  21.                   ""
  22.             )
  23.         )
  24.         (
  25.             (set catpath
  26.                 (tackon "Catalogs" language)
  27.             )
  28.             (set srcpath catpath)
  29.             (if (in lang n)
  30.                 (
  31.                     (if (<> 0 n) ; skip "english"
  32.                         (
  33.                             (makedir
  34.                                 (tackon newdest "Catalogs")
  35.                                 (safe)
  36.                             )
  37.                             (makedir
  38.                                 (tackon newdest catpath)
  39.                                 (safe)
  40.                             )
  41.                             (if (= 2 n) ; handle 2 cases for français
  42.                                 (
  43.                                     (set langopt
  44.                                         (askbool
  45.                                             (prompt "Choose the desired version of the français catalog file")
  46.                                             (choices "French with English" "French only")
  47.                                             (help "You may choose either:\n"
  48.                                                   "  French with English menus and error messages, or\n"
  49.                                                   "  Entirely French"
  50.                                             )
  51.                                         )
  52.                                     )
  53.                                     (if (= 1 langopt) ; French with English
  54.                                         (set srcpath
  55.                                             (tackon "Catalogs" "français2")
  56.                                         )
  57.                                     )
  58.                                 )
  59.                             )
  60.                             (copyfiles
  61.                                 (source
  62.                                     (tackon @execute-dir srcpath)
  63.                                 )
  64.                                 (dest
  65.                                     (tackon newdest catpath)
  66.                                 )
  67.                                 (all)
  68.                             )
  69.                         )
  70.                     )
  71.                 )
  72.             )
  73.             (set n (+ n 1))
  74.         )
  75.     )
  76. ))
  77.  
  78. (set osver
  79.     (/
  80.         (getversion "exec.library"
  81.             (resident)
  82.         )
  83.         65536
  84.     )
  85. )
  86. (set ks3
  87.     (> osver 38)
  88. )
  89.  
  90. (set newdest
  91.     (askdir
  92.         (prompt "Select the directory where \"Ensemble Verbes\" was installed")
  93.         (default @default-dest)
  94.         (help "You must tell the installer where \"Ensemble Verbes\" is located.")
  95.         (newpath)
  96.     )
  97. )
  98.  
  99. (if
  100.     (exists (tackon newdest "Verbes"))
  101.     (
  102.         (working "Patching Ensemble Verbes to V1.5")
  103.         ; Create new file in T:
  104.         (run (cat "spatch -oT:Verbes -pVerbes.pch " oldfile))
  105.         ; Copy new file over old file
  106.         (copyfiles (source "T:Verbes") (dest oldfile))
  107.         ; Remove temporary file
  108.         (delete "t:Verbes")
  109.         (if ks3
  110.             (copyfiles
  111.                 (source "Verbes39.guide")
  112.                 (dest newdest)
  113.                 (newname "Verbes.guide")
  114.             )
  115.             (copyfiles
  116.                 (source "Verbes.guide")
  117.                 (dest newdest)
  118.             )
  119.         )
  120.         (set lang
  121.             (askoptions
  122.                 (prompt "Which languages should be installed?")
  123.                 (choices "English" "Español" "Français" "Italiano" "Norsk")
  124.                 (default 31)
  125.                 (help "\"Ensemble Verbes\" may be run in any of the languages listed.")
  126.             )
  127.         )
  128.         (DOLOCALE)
  129.     )
  130. )
  131.