home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Programming / exif.lib / usr / Install-exif.library < prev   
Encoding:
Text File  |  2001-01-03  |  6.4 KB  |  207 lines

  1. ; Install exif.library
  2. ; $VER: Install-exif.library V1.0 (3.1.2001)
  3. ; © 2000 Paul Huxham
  4.  
  5. (set #catalog 0) ; english language is default
  6.  
  7. ; Find the current language
  8. (set #i 0)
  9. (while (set #thisfile (select #i
  10.         "english" "italiano" "deutsch" "español" "czech" "català" "dansk" "français"
  11.         "hrvatski" "nederlands" "norsk" "polski" "português"
  12.         "russian" "srpski" "suomi" "svenska" "ÃeÓtina"
  13.         ""))
  14.     (
  15.         (if (= @language #thisfile)
  16.             (
  17.                 (set #catalog #i)
  18.                 (set #catalogname #thisfile)
  19.             )
  20.         )
  21.         (set #i (+ #i 1))
  22.     )
  23. )
  24.  
  25. ; Query user for their language, using system as default
  26. (set #catalog
  27.     (askchoice
  28.         (prompt "Select your native language (language for installer)")
  29.         (help @askoptions-help)
  30.         (choices "English" "Italiano" "Deutsch" "Español" "Czech")
  31.         (default #catalog)
  32.     )
  33. )
  34.  
  35. ; Reset #catalogname as the user may have changed the language above
  36. (if (< #catalog 5)
  37.     (
  38.         (set #catalogname (select #catalog "english" "italiano" "deutsch" "español" "czech"))
  39.     )
  40. )
  41.  
  42. ; Some string defaults common for all languages
  43. (set #HOMEPAGE "http://mafeking.scouts.org.au/steeplesoftware")
  44. (set #BLANK "\n")
  45.  
  46.  
  47. ; ************************** English texts ******************************
  48. (set #INITIAL_MESSAGE
  49.   (cat "\nWelcome to the exif.library installer\n\n\n"
  50.     "You can obtain updates and other information\nabout exif.library from the homepage\n\n"
  51.     #HOMEPAGE)
  52. )
  53. (set #WRONG_INSTALLER_VERSION "\n\n\n\nYou need at least version 42.9 of Installer\nto install exif.library")
  54. (set #WRONG_CPU "\n\n\n\nYou need a 68020 CPU or better\nto use exif.library")
  55. (set #WRONG_OS_VERSION "\n\n\n\nYou need at least AmigaOS V2.0\nto use exif.library")
  56. (set #INSTALLING "\nInstalling")
  57. (set #UPDATES_AVAILABLE "\nYou can get the latest version\nof exif.library from the homepage")
  58. (set #YES "Yes")
  59. (set #NO "No")
  60.  
  61. ; ************************** Italiano texts *****************************
  62. (if (= #catalog 1)
  63. (
  64. (set #INITIAL_MESSAGE
  65.   (cat "\nBenvenuto nell'installazione di exif.library\n\n\n"
  66.      "Puoi ottenere gli aggiornamenti, la mailing list e altre informazioni\nsu exif.library alla homepage\n"
  67.      #HOMEPAGE)
  68. )
  69. (set #WRONG_INSTALLER_VERSION "\n\n\n\nNecessiti almeno della versione 42.9 dell'Installer\nper installare exif.library")
  70. (set #WRONG_CPU "\n\n\n\nNecessiti di una CPU 68020 o superiore\nper usare exif.library")
  71. (set #WRONG_OS_VERSION "\n\n\n\nNecessiti almeno di AmigaOS V2.0\nper usare exif.library")
  72. (set #INSTALLING "\nInstallazione")
  73. (set #UPDATES_AVAILABLE "\nAggiornamenti di exif.library e le librarie richieste\n\nsono disponibili sulla home page")
  74. (set #YES "Sì")
  75. (set #NO "No")
  76. )
  77. )
  78.  
  79. ; ************************** Deutsch texts ******************************
  80. (if (= #catalog 2)
  81. (
  82. (set #INITIAL_MESSAGE
  83.   (cat "\nWillkommen zur Installation von exif.library\n\n\n"
  84.     "Updates, und weitere Information\nüber exif.library gibt es auf der Homepage\n"
  85.     #HOMEPAGE)
  86. )
  87. (set #WRONG_INSTALLER_VERSION "\n\n\n\nSie benötigen mind. Version 42.9 des Installers\num exif.library zu installieren")
  88. (set #WRONG_CPU "\n\n\n\nSie benötigen einen 68020 oder höher\num exif.library ausführen zu können")
  89. (set #WRONG_OS_VERSION "\n\n\n\nSie benötigen mind. AmigaOS V2.0\num exif.library ausführen zu können")
  90. (set #INSTALLING "\nInstalliert")
  91. (set #UPDATES_AVAILABLE "\nUpdates für exif.library und den dazugehörigen libraries\n\ngibt es auf der Homepage")
  92. (set #YES "Ja")
  93. (set #NO "Nein")
  94. )
  95. )
  96.  
  97. ; ************************** Español texts ******************************
  98. (if (= #catalog 3)
  99. (
  100. (set #INITIAL_MESSAGE
  101.   (cat "\nBienvenido a la instalación de exif.library\n\n\n"
  102.     "Podrás obtener actualizaciones, acceder a listas de correo y tener más información\nsobre exif.library en la página web de Homepage\n"
  103.     #HOMEPAGE)
  104. )
  105. (set #WRONG_INSTALLER_VERSION "\n\n\n\nNecesitas al menos la versión 42.9 del Installer\npara instalar exif.library")
  106. (set #WRONG_CPU "\n\n\n\nNecesitas un 68020 o superior\npara utilizar exif.library")
  107. (set #WRONG_OS_VERSION "\n\n\n\nNecesitas al menos AmigaOS V2.0\npara utilizar exif.library")
  108. (set #INSTALLING "\nInstalando")
  109. (set #UPDATES_AVAILABLE "\nLas actualizaciones de exif.library y librerías necesarias\n\nestán disponibles en la página web de homepage")
  110. (set #YES "Sí")
  111. (set #NO "No")
  112. )
  113. )
  114.  
  115. ; ************************** Czech texts ******************************
  116. (if (= #catalog 4)
  117. (
  118. (set #INITIAL_MESSAGE
  119.   (cat "\nVítejte pêi instalaci programu exif.library!\n\n\n"
  120.     "Dalîí informace, kontakt na ostatní uùivatele a aktualizace\nmûùete zdarma získat staùením z domovské stránky\n"
  121.     #HOMEPAGE)
  122. )
  123. (set #WRONG_INSTALLER_VERSION "\n\n\n\nK instalaci programu exif.library\npotêebujete Installer V42.9 nebo vyîîí")
  124. (set #WRONG_CPU "\n\n\n\nKe spuîtëní programu exif.library\npotêebujete alespoñ CPU68020 nebo lepîí")
  125. (set #WRONG_OS_VERSION "\n\n\n\nProgram exif.library vyùaduje\nke spuîtëní AmigaOS V2.0")
  126. (set #INSTALLING "\nInstalace")
  127. (set #UPDATES_AVAILABLE "\n\nAktualizace programu exif.library a pêísluîných\n\nknihoven jsou dostupné z domovské stránky")
  128. (set #YES "Ano")
  129. (set #NO "Ne")
  130. )
  131. )
  132.  
  133.  
  134. ; ************************* Global procedures ***************************
  135. (procedure P_copylib lib destpath newlibname
  136.     (
  137.         (copylib
  138.             (prompt (cat (cat #INSTALLING " ") (fileonly newlibname)))
  139.             (help @copylib-help)
  140.             (newname newlibname)
  141.             (source lib)
  142.             (dest destpath)
  143.             (confirm)
  144.             (optional askuser)
  145.         )
  146.     )
  147. )
  148.  
  149.  
  150. ; *********************** exif.library install
  151.  
  152. (if (< @installer-version (+ (* 65536 42) 9))
  153.     (abort #WRONG_INSTALLER_VERSION)
  154. )
  155.  
  156. (if (< (database "cpu") 68020 )
  157.     (abort #WRONG_CPU)
  158. )
  159.  
  160. (set os_version (/ (getversion "exec.library" (resident)) 65536))
  161. (if (< os_version 37)
  162.     (abort #WRONG_OS_VERSION)
  163. )
  164.  
  165. ; All essential version numbers are correct, continue installation
  166. (message #INITIAL_MESSAGE)
  167.  
  168. (complete 0)
  169.  
  170.  
  171. ; *********************** Sort out what the user has where
  172.  
  173. ; Establish CPU type
  174.  
  175. (set #ourcpu (database "cpu"))
  176.  
  177. (if (= #ourcpu "68020") (set #ourcpu 0))
  178. (if (= #ourcpu "68030") (set #ourcpu 0))
  179. (if (= #ourcpu "68040") (set #ourcpu 1))
  180. (if (= #ourcpu "68060") (set #ourcpu 2))
  181.  
  182. (complete 0)
  183.  
  184. ; *********************** Install exif.library
  185.  
  186. (set @default-dest "Libs:")
  187.  
  188. (if (= @user-level 2) ;If expert user, ask directory
  189.     (
  190.         (set @default-dest
  191.             (askdir
  192.                 (prompt #SELECT_INSTALL_DIRECTORY)
  193.                 (help @askdir-help)
  194.                 (default @default-dest)
  195.             )
  196.         )
  197.     )
  198. )
  199.  
  200. (P_copylib "libs/exif.library" @default-dest "exif.library")
  201.  
  202. (complete 100)
  203.  
  204. ; *********************** Finished installation
  205.  
  206. (message (cat #UPDATES_AVAILABLE #BLANK #BLANK #HOMEPAGE))
  207.