home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 52 / af052sub.adf / newlist.lha / NewList / OldInstall-Newlist8 < prev    next >
Text File  |  1993-07-16  |  5KB  |  165 lines

  1. ; $VER: Newlist 8 (19-Jun-93) Manual Install Script
  2. echo ""
  3. echo " ------------------"
  4. echo "  Install newlist8"
  5. echo " ------------------"
  6. echo ""
  7. echo " This script will copy the appropriate version to c: and call it 'nl'." 
  8. echo ""
  9. echo "            Note: pressing return at prompts will mean 'no'."
  10. echo ""
  11. if exists c:nl
  12.       echo ""
  13.       echo " ATTENTION:  c:nl already exists!"
  14.       ask  "             Do you wish to overwrite c:nl (y/n)?"
  15.       if warn
  16.       else
  17.          echo ""
  18.          echo "Installation aborted."  
  19.          skip xit
  20.       endif
  21.       resident c:nl remove >nil:
  22.       echo ""
  23.       echo ""
  24. endif
  25.  
  26. echo " Which Newlist version:"
  27. echo ""
  28. echo "    Newlist8     - Newlist for all Amigas"
  29. echo "    Newlist8.030 - Newlist for MC68030 or MC68040 ONLY"
  30. echo ""
  31. ask " Install Newlist8 (y/n) ?"
  32. if warn 
  33.    copy newlist8 c:nl
  34.    echo "      Newlist8 copied to c:nl..."
  35.    resident c:nl add
  36. endif
  37. ask " Install Newlist8.030 (y/n) ?"
  38. if warn 
  39.    copy newlist8.030 c:nl
  40.    echo "      Newlist8.030 copied to c:nl..."
  41.    resident c:nl add
  42. endif
  43.  
  44. if exists ENV:NEWLIST_LANG
  45.       echo ""
  46.       echo " ATTENTION!"
  47.       echo " Language file already exists!!"
  48.       echo ""
  49.       echo " It's highly advised that you replace you old language file"
  50.       echo " because things always change!  If you don't then you may"
  51.       echo " experience weird behavior from Newlist."
  52.       echo ""
  53.       ask " Want to replace ENV:NEWLIST_LANG (y/n) ?"
  54.       if warn
  55.       else 
  56.          skip more
  57.       endif
  58. endif
  59.    echo ""
  60.    echo " Please install a language...."
  61.    cd languages
  62.    execute oldinstall-lang
  63.    cd /
  64.    if exists ENV:NEWLIST_LANG
  65.       else
  66.          echo ""
  67.          echo " Installation not complete!"
  68.          echo "   In order to run newlist8 a language must be installed."
  69.          skip xit
  70.       endif
  71.    resident c:nl add
  72. endif
  73. lab more
  74. echo ""
  75. echo " -------------------"
  76. echo "  Misc stuff to add"
  77. echo " -------------------"
  78. echo ""
  79. echo " 'Aliases'   a bunch of useful aliases that use newlist's features."
  80. echo "               Newlist_Aliases will be copied to s:"
  81. echo "               Editing this file is encouraged."
  82. echo " 'NewSpat'   a replacement for Commodore's s:spat that uses nl"
  83. echo " 'NewDpat'   a replacement for Commodore's s:dpat that uses nl"
  84. echo " 'newdir'    a neat newlist multi-execution example"
  85. echo ""
  86. ask " Shall I append 'Aliases' to your s:shell-startup (y/n) ?"
  87. if warn 
  88.    copy scripts/Aliases s:Newlist_Aliases
  89.    echo "execute s:Newlist_Aliases" >>s:shell-startup
  90. endif
  91. ask " Shall I replace s:spat and s:dpat with newlist versions (y/n)?"
  92. if warn
  93.    echo "  --Original spat and dpat will be renamed to spat.bak and dpat.bak"
  94.    if exists s:spat
  95.       rename s:spat s:spat.bak
  96.    endif
  97.    if exists s:dpat
  98.       rename s:dpat s:dpat.bak
  99.    endif
  100.    copy scripts/newspat s:spat
  101.    copy scripts/newdpat s:dpat
  102. endif
  103. ask " Shall I copy 'newdir' to your c: directory (y/n)?"
  104. if warn
  105.    copy scripts/newdir c:
  106. endif
  107. echo ""
  108. echo " --------"
  109. echo "  Extras"
  110. echo " --------"
  111. echo ""
  112. echo "  RESIDENT   -  loads the program once into memory so further calls"
  113. echo "                  do not need to be loaded again from disk."
  114. echo "                  This makes newlist fast to run."
  115. echo "  ENV:       -  Environment variables go here.  Newlist has environment"
  116. echo "                  variable support to allow a user to customize his"
  117. echo "                  default settings."
  118. echo ""
  119. ask " Shall I add 'RESIDENT c:nl PURE ADD' to the top of your s:user-startup ?"
  120. if warn
  121.    if exists s:user-startup
  122.       if exists ram:
  123.          copy s:user-startup ram:
  124.          echo "RESIDENT c:nl PURE ADD" >s:user-startup
  125.          type ram:user-startup >>s:user-startup
  126.          delete ram:user-startup >nil:
  127.       endif
  128.    endif
  129. endif
  130. if exists ENV:NEWLIST
  131.    echo ""
  132.    echo " ----------"
  133.    echo " ATTENTION: ENV: variables already exist!  Re-installing will erase all of"
  134.    echo "            your ENV: variables and settings."
  135.    echo ""
  136. endif
  137. ask " Shall I install my favorite ENV: settings in ENV: and ENVARC: (y/n) ?"
  138. if warn
  139.    if exists ENV:
  140.       copy env env: >nil:
  141.    endif
  142.    if exists ENVARC:
  143.       copy env envarc: >nil:
  144.    endif
  145. endif
  146. echo ""
  147. echo ""
  148. echo " Installation complete.  If you have any problems, consult the"
  149. echo "   installation section in NewList.doc.  If you installed the aliases"
  150. echo "   please edit them to increase shell-startup speed."
  151. echo ""
  152. echo "           Try it out with:   nl"
  153. echo "                              nl -z"
  154. echo "                              nl -q"
  155. echo "                              nl -qs"
  156. echo "                              nl -qt"
  157. echo "                              nl -T3"
  158. echo "                              nl -UV"
  159. echo "                              nl -?"
  160. echo ""
  161. echo " Enjoy!"
  162. lab xit
  163. echo ""
  164.  
  165.