home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / demos / euro / pboard1.lha / Install_DEMO_HD < prev    next >
Encoding:
Text File  |  1992-08-06  |  4.2 KB  |  135 lines

  1. . Usage: Install_DEMO_HD harddisk_name
  2. . modified for DEMO version.  No Pro-Plot references.
  3. .KEY des
  4. .BRA {
  5. .KET }
  6. IF {des$"nothing"} eq "nothing"
  7.  ECHO " "
  8.  ECHO "Usage:"
  9.  ECHO " "
  10.  ECHO "EXECUTE Pro-Demo:Install_DEMO_HD  <HARDDISK_NAME>"
  11.  ECHO " "
  12.  ECHO " <HARDDISK_NAME> is either the Disk or Volume name"
  13.  ECHO "                 (such as DH0: or Work:)"
  14.  ECHO "                 or an ASSIGNed name to a"
  15.  ECHO "                 sub-directory path on the hard drive"
  16.  ECHO "                 such as ASSIGN ProBoard: DH0:CAD/Pro-Board3"
  17.  ECHO "                 in your StartUp-Sequence and install to ProBoard:"
  18.  ECHO " "
  19.  QUIT
  20. ENDIF
  21. IF NOT EXISTS {des}
  22.  ECHO "{des} not found."
  23.  QUIT
  24. ENDIF
  25. FAILAT 31
  26. CD {des}
  27. CD >NIL: /
  28. IF FAIL
  29.  ECHO "{des} points to the root of a disk."
  30.  CD {des}
  31.  SKIP TO_SUB-DIR
  32.  ;
  33.  ; Send to {des}Pro-Board routine
  34.  ;
  35. ELSE
  36.  ECHO "{des} points to a sub-directory."
  37.  CD {des}
  38.  SKIP TO_ASSIGN
  39.  ;
  40.  ; Send to {des} routine
  41.  ;
  42. ENDIF
  43.  
  44.  
  45. LAB TO_SUB-DIR
  46. IF EXISTS {des}Pro-Board3/Pro-Board_Demo
  47.  ECHO "UPDATING Pro-Board DEMO."
  48.  ECHO " PCB and Library Part files will not be copied"
  49.  ECHO " because the index files would be overwritten"
  50.  COPY "Pro-Demo:Pro-Board_Demo"  {des}Pro-Board3/
  51. ; do not copy Pro-Board_Demo.info as it would overwrite Snapshot info
  52.  COPY "Pro-Demo:PB.HTEX"         {des}Pro-Board3/
  53.  COPY "Pro-Demo:PB.HIND"         {des}Pro-Board3/
  54.  ECHO "Please insert Pro-Data in any drive
  55.  ASK  "and enter 'Y' followed by <Carriage Return>"
  56.  IF WARN
  57.   COPY "Pro-Data:Pro-Lib"   {des}Pro-Board3/
  58.   COPY "Pro-Data:PLib.HTEX" {des}Pro-Board3/
  59.   COPY "Pro-Data:PLib.HIND" {des}Pro-Board3/
  60.  ENDIF
  61.  ; Use older commands to work with as many systems as possible
  62.  NewCLI Con:200/10/350/100/Warning from Pro-Data:s/TypeWarning
  63. else
  64.  ECHO "INSTALLING Pro-Board"
  65.  IF NOT EXISTS {des}Pro-Board3
  66.   MAKEDIR {des}Pro-Board3
  67.  ENDIF
  68.  COPY "Pro-Demo:Pro-Board3.icon" to  {des}Pro-Board3.info
  69.  COPY "Pro-Demo:Pro-Board_Demo       {des}Pro-Board3/
  70.  COPY "Pro-Demo:Pro-Board_Demo.info" {des}Pro-Board3/
  71.  COPY "Pro-Demo:PB.HTEX"             {des}Pro-Board3/
  72.  COPY "Pro-Demo:PB.HIND"             {des}Pro-Board3/
  73.  COPY "Pro-Demo:pcb.conf"            {des}Pro-Board3/pcb.conf
  74.  ECHO "Please insert Pro-Data in any drive
  75.  ASK  "and enter 'Y' followed by <Carriage Return>"
  76.  IF WARN
  77.   COPY "Pro-Data:pcb.apt"            {des}Pro-Board3/
  78.   COPY "Pro-Data:Pro-Lib"            {des}Pro-Board3/
  79.   COPY "Pro-Data:Pro-Lib.info"       {des}Pro-Board3/
  80.   COPY "Pro-Data:PLib.HTEX"          {des}Pro-Board3/
  81.   COPY "Pro-Data:PLib.HIND"          {des}Pro-Board3/
  82.   COPY "Pro-Data:BOARD"              {des}Pro-Board3/
  83.   COPY "Pro-Data:#?.apcb"            {des}Pro-Board3/
  84.   COPY "Pro-Data:afiind"             {des}Pro-Board3/
  85.   COPY "Pro-Data:afilib"             {des}Pro-Board3/
  86.  ENDIF
  87.  QUIT
  88. ENDIF
  89. QUIT
  90.  
  91.  
  92. LAB TO_ASSIGN
  93. IF EXISTS {des}Pro-Board_Demo
  94.  ECHO "UPDATING Pro-Board"
  95.  ECHO "COPYING NEW VERSION"
  96.  ECHO " PCB data files and Library Parts will not be copied"
  97.  ECHO " because the index files would be overwritten."
  98.  COPY "Pro-Demo:Pro-Board_Demo" {des}
  99. ; do not copy Pro-Board_Demo.info as it would overwrite Snapshot info
  100.  COPY "Pro-Demo:PB.HTEX"        {des}
  101.  COPY "Pro-Demo:PB.HIND"        {des}
  102.  ECHO "Please insert Pro-Data in any drive
  103.  ASK  "and enter 'Y' followed by <Carriage Return>"
  104.  IF WARN
  105.   COPY "Pro-Data:Pro-Lib"       {des}
  106.   COPY "Pro-Data:PLib.HTEX"     {des}
  107.   COPY "Pro-Data:PLib.HIND"     {des}
  108.  ENDIF
  109.  ; Use older commands to work with as many systems as possible
  110.  NewCLI Con:200/10/350/100/Warning from Pro-Data:s/TypeWarning
  111. else
  112.  ECHO "INSTALLING Pro-Board"
  113.  COPY "Pro-Demo:Pro-Board_Demo"      {des}
  114.  COPY "Pro-Demo:Pro-Board_Demo.info" {des}
  115.  COPY "Pro-Demo:PB.HTEX"             {des}
  116.  COPY "Pro-Demo:PB.HIND"             {des}
  117.  COPY "Pro-Demo:pcb.conf"            {des}
  118.  ECHO "Please insert Pro-Data in any drive
  119.  ASK  "and enter 'Y' followed by <Carriage Return>"
  120.  IF WARN
  121.   COPY "Pro-Data:pcb.apt"       {des}
  122.   COPY "Pro-Data:Pro-Lib"       {des}
  123.   COPY "Pro-Data:Pro-Lib.info"  {des}
  124.   COPY "Pro-Data:PLib.HTEX"     {des}
  125.   COPY "Pro-Data:PLib.HIND"     {des}
  126.   COPY "Pro-Data:BOARD"         {des}
  127.   COPY "Pro-Data:#?.apcb"       {des}
  128.   COPY "Pro-Data:afiind"        {des}
  129.   COPY "Pro-Data:afilib"        {des}
  130.  ENDIF
  131.  QUIT
  132. ENDIF
  133. QUIT
  134.  
  135.