home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / System / MorphOS / CygnusED-PPC / CED-PPC < prev    next >
Encoding:
Text File  |  2000-10-17  |  7.1 KB  |  137 lines

  1. ;*****************************************************************************
  2. ;     ______ ______ ____             ______ ______ ______
  3. ;    / __  // ____// __ \           / __  // __  // __  /
  4. ;   / /  -'/ /_   / / / / ______   / /_/ // /_/ // /  -' MorphOS
  5. ;  / /    / __/  / / / / /_____/  / ____// ____// /   
  6. ; / /___ / /___ / /_/ /          / /    / /    / /___ Patch
  7. ; \____//_____//_____/          /_/    /_/     \____/
  8. ;
  9. ; CED-PPC Patch Installer ©1999-2000 Robert C. Reiswig 
  10. ; $VER: V0.63 (October-16-2000)
  11. ; If you wish to use any part of this installer you must ask. May not be 
  12. ; integrated/placed into any other package! You may NOT change this in an way!
  13. ; You man NOT take or use the ENV definitions and use them without direct
  14. ; permission from me! Changes, suggestions or problems: rob@vgr.com
  15. ;********************************************************************************
  16.  
  17. (set patchfile1 "ed_morphos.pch")
  18. (set patchfile2 "ced_ppc.pch")
  19. (set ced_root "") (set diskname "CygnusEd_Pro_4:")
  20. (set disknamec "CygnusEd_Pro_4")
  21. (set spatchbin (tackon ced_root "spatch"))
  22.  
  23. ;********************************************************************************
  24. ;English Strings
  25. ;********************************************************************************
  26. (set #intro "\n\nThis installer will create a PPC-MorphOS version of CygnusEd. It will also back up your orginal 'Ed' and 'CED' files.\n\nYou will need your CygnusEd CDROM as a base to create the new MorphOS binary CygnusEd programs. You must have CygnusEd correctly installed on your system.")
  27. (set #filenothere1 "\n\nThe installer could not find the file 'ed' in the directory where you told it to look. \n\nThe PPC-MorphOS version of Ed could not be created. \n\nPlease quit the installer and start again and select the correct directory.")
  28. (set #wherefile1 "Select the directory CED's 'ed' is in")
  29.  
  30. (set #filenothere2 "\n\nThe installer could not find the file 'CED' in the directory where you told it to look. \n\nThe PPC-MorphOS version of Ed could not be created. \n\nPlease quit the installer and start again and select the correct directory.")
  31. (set #wherefile2 "Select the directory 'CED' is in")
  32. (set #err1 "\n\nspatch retured an error code of ")
  33. (set #err2a ", the orginal file to be patched, 'Ed', was corrupt or bad, or could have not been at the location you told the installer. You may have tried to patch CMB's 'ed' editor. You may try to reinstall CygnusEd from the CDROM.")
  34. (set #err2b ", the orginal file to be patched, 'CED', was corrupt or bad, or could have not been at the location you told the installer. You may have tried to patch a verion of CED that is to old. You may try to reinstall CygnusEd from the CDROM.")
  35.  
  36. (set #patching1 "\nPatching file\n\n")
  37. (set #patching2 "\n\nto\n\n")
  38. (set #needcd "\n\n\nPlease place your CygnusEd CDROM into your CDROM drive to continue.")
  39.  
  40. ;********************************************************************************
  41. ;German Strings by the King!
  42. ;********************************************************************************
  43. (if (= @language "deutsch")
  44.  (
  45.   (set #intro "\n\nDieser installer erzeugt eine PPC-MorphOS Version von CygnusEd. Ebenso werden die orginalen 'Ed' und 'CED' Dateien gesichert.\n\nDie CygnusEd CDROM wird zur Erzeugung des neuen MorphOS CygnusEd Programms benötigt. Sie müssen die 68K-Version von CygnusEd bereits auf Ihrem System installiert haben.")
  46.   (set #filenothere1 "\n\nDer installer konnte die Datei 'ed' nicht im angegebenen Verzeichnis finden. \n\nDie PPC-MorphOS Version von Ed konnte nicht erzeugt werden. \n\nBitte verlassen Sie das Installationsprogramm und starten Sie es noch einmal mit einem korrekten Pfad.")
  47.   (set #wherefile1 "Bitte wählen Sie das Verzeichnis, welches CED's 'ed' enthält")
  48.  
  49.   (set #filenothere2 "\n\nThe installer could not find the file 'CED' in the directory where you told it to look. \n\nThe PPC-MorphOS version of Ed could not be created. \n\nPlease quit the installer and start again and select the correct directory.")
  50.   (set #wherefile2 "Select the directory 'CED' is in")
  51.   (set #err1 "\n\nspatch retured an error code of ")
  52.   (set #err2a ", the orginal file to be patched, 'Ed', was corrupt or bad, or could have not been at the location you told the installer. You may have tried to patch CMB's 'ed' editor. You may try to reinstall CygnusEd from the CDROM.")
  53.   (set #err2b ", the orginal file to be patched, 'CED', was corrupt or bad, or could have not been at the location you told the installer. You may have tried to patch a verion of CED that is to old. You may try to reinstall CygnusEd from the CDROM.")
  54.  
  55.   (set #patching1 "\nErzeuge Dateien\n\n")
  56.   (set #patching2 "\n\nto\n\n")
  57.  )
  58. )
  59.  
  60.  
  61. ;********************************************************************************
  62. ; Welcome
  63. ;********************************************************************************
  64. (message  #intro)
  65. (welcome)(askdisk (dest disknamec) (prompt #needcd) (help #needcd) )
  66.  
  67. ;*******************************************************************
  68. ;  ASK where ED is 
  69. ;*******************************************************************
  70. (set wherefile  (askdir (prompt #wherefile1)
  71.              (help   #wherefile1)
  72.                   (default "c:")
  73.          )
  74. )
  75.  
  76. (if (exists (tackon wherefile "Ed"))
  77.    (
  78.     (set vernum1 (getversion (tackon wherefile "ed")) )
  79.     (set ver1 (/ vernum1 65536)) (set rev1 (- vernum1 (* ver1 65536) ) )
  80.     (copyfiles (source (tackon wherefile "Ed"))
  81.                        (dest (expandpath wherefile))
  82.                        (newname (cat "Ed" ver1 "." rev1))
  83.     )
  84.  
  85.     (set todo (cat spatchbin " \"-p" patchfile1 "\" " "\"-o" (tackon "ram:" "Ed") "\"" " \""(tackon diskname "CygnusEd/Ed\"")))
  86.     (working (cat #patching1 (tackon diskname "Ed") #patching2 (tackon "ram:" "Ed")) )
  87.     (set err (run todo))
  88.  
  89.     (if (> err 0)  (message (cat #err1 err #err2a)) )
  90.     (copylib (source (tackon "ram:" "Ed")) (dest wherefile) (optional "nofail") ) 
  91.  
  92.    )
  93.  
  94.    (message #filenothere1) 
  95. )
  96.  
  97.  
  98. ;*******************************************************************
  99. ;  ASK where CED is 
  100. ;*******************************************************************
  101. (set wherefile  (askdir (prompt #wherefile2)
  102.              (help   #wherefile2)
  103.                   (default wherefile)
  104.          )
  105. )
  106.  
  107. ;(if (exists (tackon wherefile "CED"))
  108. ;   (
  109. ;    (set vernum1 (getversion (tackon wherefile "CED")) )
  110. ;    (set ver1 (/ vernum1 65536)) (set rev1 (- vernum1 (* ver1 65536) ) )
  111. ;    (copyfiles (source (tackon wherefile "CED"))
  112. ;                       (dest (expandpath wherefile))
  113. ;                       (newname (cat "CED" ver1 "." rev1))
  114. ;    )
  115.  
  116. ;    (set todo (cat spatchbin " \"-p" patchfile2 "\" " "\"-o" (tackon "ram:" "CED.elf") "\"" " \""(tackon diskname "CygnusEd/CED\"")))
  117. ;    (working (cat #patching1 (tackon diskname "CED") #patching2 (tackon "ram:" "CED.elf")) )
  118. ;    (set err (run todo))
  119. ;    (if (> err 0)  (message (cat #err1 err #err2b)) )
  120. ;    ;;; (copy XYZ)
  121.  
  122.  
  123. ;   )
  124.  
  125. ;   (message #filenothere1) 
  126. ;)
  127.  
  128.  
  129. (copylib (source  "CED.elf") (dest wherefile) (optional "nofail") ) 
  130.  
  131.  
  132. ;********************************************************************************
  133. ; Exit
  134. ;********************************************************************************
  135. (exit)
  136.