home *** CD-ROM | disk | FTP | other *** search
/ Phase 1 / phase1.bin / Utilities / FinalWrap / FW2_x / FinalWrapper.install < prev    next >
Encoding:
Text File  |  1995-07-19  |  1.8 KB  |  47 lines

  1. ; $VER: FinalWrapper.install 2.1 (11.06.94) by NDY's
  2. (IF (= @language "deutsch")
  3.   (
  4.     (SET kick "Sorry, FinalWrapper benötigt mindestens OS2.0!")
  5.     (SET macro "Wählen Sie Ihr Final Writer Makroverzeichnis:")
  6.     (SET macrohelp "FinalWrapper wird in dieses Verzeichnis installiert")
  7.     (SET alreadynewer "Diese oder eine neuere Version ist bereits installiert:\n\n")
  8.     (SET installothers "Andere Makros auch installieren?")
  9.     (SET yes "Ja")
  10.     (SET no "Nein")
  11.   )
  12.   (
  13.     (SET kick "Sorry, FinalWrapper needs at least OS2.0!")
  14.     (SET macro "Choose your Final Writer macro directory:")
  15.     (SET macrohelp "FinalWrapper will be installed to this directory")
  16.     (SET alreadynewer "This or a newer version is already installed:\n\n")
  17.     (SET installothers "Install other macros as well?")
  18.     (SET yes "Yes")
  19.     (SET no "No")
  20.   )
  21. )
  22. (IF (< (SHIFTRIGHT (GETVERSION) 16) 37) (EXIT kick))
  23. (SET filename "FinalWrapper.rexx")
  24. (SET libname "libs/rexxmathlib.library")
  25. (SET libname2 "libs/apig.library")
  26. (SET others "OtherGoodies")
  27. (SET @default-dest (ASKDIR (PROMPT macro) (DEFAULT @default-dest) (HELP macrohelp)))
  28. (SET sourcename (TACKON "FW2_x" filename))
  29. (SET destname (TACKON @default-dest filename))
  30. (IF (EXISTS destname)
  31.   (
  32.     (SET env "FWInstall.temp")
  33.     (RUN (CAT "Version >ENV:" env " \"" sourcename "\""e))
  34.     (SET sourcever (GETENV env))
  35.     (RUN (CAT "Version >ENV:" env " \"" destname "\""))
  36.     (SET destver (GETENV env))
  37.     (RUN (CAT "UnsetEnv >NIL: " env))
  38.     (IF (>= destver sourcever) (EXIT alreadynewer destver))
  39.   )
  40. )
  41. (COPYFILES (SOURCE sourcename) (DEST @default-dest))
  42. (COPYLIB (SOURCE libname) (DEST "LIBS:"))
  43. (COPYLIB (SOURCE libname2) (DEST "LIBS:"))
  44. (RUN (CAT "ENV_Locale " @language))
  45. (IF (ASKBOOL (PROMPT installothers) (HELP @askbool-help)) (COPYFILES (SOURCE others) (DEST @default-dest) (ALL)))
  46. (EXIT)
  47.