home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / amiga / 1994 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  2.2 KB

  1. Path: sparky!uunet!olivea!isc-br!odin!ricks
  2. From: ricks@odin.isc-br.com (Rick Schaeffer 99)
  3. Newsgroups: comp.unix.amiga
  4. Subject: Re: How do I copy the 2.1 Install tape ?
  5. Message-ID: <1992Aug18.050621.29625@isc-br.isc-br.com>
  6. Date: 18 Aug 92 05:06:21 GMT
  7. References: <1992Aug18.015629.8276@catfish.az05.bull.com>
  8. Sender: news@isc-br.isc-br.com (news user)
  9. Organization: ISC-Bunker Ramo, An Olivetti Company
  10. Lines: 96
  11. Nntp-Posting-Host: odin.isc-br.com
  12.  
  13. In article <1992Aug18.015629.8276@catfish.az05.bull.com> abryson@cibecue.az05.bull.com (Aaron Bryson) writes:
  14. >What's the best way to copy the Install tape ? - I've got enough space to
  15. >shunt the 30-odd files off onto disk, but I can't seem to create a tape
  16. >that the package utilities can read.
  17. >
  18. >Can someone post a simple script I can use ?
  19.  
  20. No problem.  Here is a shar of the files I use to copy the tape.
  21.  
  22. # This is a shell archive.  Remove anything before this line,
  23. # then unpack it by saving it in a file and typing "sh file".
  24. #
  25. # This archive contains:
  26. #    README    cpdist    dtdist    seglist    
  27. #
  28.  
  29. echo x - README
  30. cat >README <<'@EOF'
  31. These three files let you copy the Amiga Unix 2.1 Distribution tape.
  32.   cpdist:  A little shell script that reads the tape and creates a
  33.            bunch of files...one for each tape segment.
  34.   
  35.   dtdist:  A little shell script that does the opposite...ie: re-create
  36.            the distribution tape
  37.  
  38.   seglist: A file containing the names used for each of the segments
  39.            on the tape
  40. @EOF
  41.  
  42. chmod 666 README
  43.  
  44. echo x - cpdist
  45. cat >cpdist <<'@EOF'
  46. :
  47. for name in `cat seglist`
  48. do
  49.     echo "Working on $name"
  50.     dd if=/dev/rmt/4n of=$name bs=32k
  51. done
  52. @EOF
  53.  
  54. chmod 774 cpdist
  55.  
  56. echo x - dtdist
  57. cat >dtdist <<'@EOF'
  58. :
  59. for name in `cat seglist`
  60. do
  61.     echo "Working on $name"
  62.     dd if=$name of=/dev/rmt/4n bs=32k
  63. done
  64. @EOF
  65.  
  66. chmod 774 dtdist
  67.  
  68. echo x - seglist
  69. cat >seglist <<'@EOF'
  70. amixlist
  71. unixcont
  72. core
  73. bsd
  74. Cdev
  75. lp
  76. man
  77. net
  78. public
  79. sysadm
  80. terminfo
  81. text
  82. uucp
  83. Xcore
  84. Xbasic
  85. olcore
  86. Xtras
  87. Xdev
  88. oldev
  89. conf
  90. emacs
  91. games
  92. amigasrc
  93. emacsrc
  94. gnusrc
  95. gnusrc2
  96. pubsrc
  97. Xsource
  98. X11r5src
  99. @EOF
  100.  
  101. chmod 644 seglist
  102.  
  103. exit 0
  104. --
  105. Rick Schaeffer          UUCP:  uunet!isc-br.isc-br.com!ricks
  106. ISC-Bunker Ramo                ricks@isc-br.isc-br.com
  107. Box TAF-C8              Phone: (509)927-5114
  108. Spokane, WA  99220      Home:  (509)928-3533
  109.