home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / misc / volume28 / advise / part02 < prev    next >
Encoding:
Text File  |  1992-02-22  |  5.5 KB  |  175 lines

  1. Newsgroups: comp.sources.misc
  2. From: ag@monique.bubble.org (Keith Gabryelski)
  3. Subject:  v28i071:  advise - Attach to another user, v2.0, Part02/02
  4. Message-ID: <1992Feb24.041709.15810@sparky.imd.sterling.com>
  5. X-Md4-Signature: c9753e11db630d914a99867c4d8023fc
  6. Date: Mon, 24 Feb 1992 04:17:09 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: ag@monique.bubble.org (Keith Gabryelski)
  10. Posting-number: Volume 28, Issue 71
  11. Archive-name: advise/part02
  12. Environment: SunOS, SYSVR4i386
  13.  
  14. #! /bin/sh
  15. # into a shell via "sh file" or similar.  To overwrite existing files,
  16. # type "sh file -c".
  17. # The tool that generated this appeared in the comp.sources.unix newsgroup;
  18. # send mail to comp-sources-unix@uunet.uu.net if you want that tool.
  19. # Contents:  INSTALL advise.exec advise.id/Master advise.id/Node
  20. #   advise.id/System advmod.id/Master advmod.id/System patchlevel.h
  21. # Wrapped by kent@sparky on Sun Feb 23 21:54:18 1992
  22. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  23. echo If this archive is complete, you will see the following message:
  24. echo '          "shar: End of archive 2 (of 2)."'
  25. if test -f 'INSTALL' -a "${1}" != "-c" ; then 
  26.   echo shar: Will not clobber existing file \"'INSTALL'\"
  27. else
  28.   echo shar: Extracting \"'INSTALL'\" \(649 characters\)
  29.   sed "s/^X//" >'INSTALL' <<'END_OF_FILE'
  30. X
  31. XHow to install advise for SVR4 i386 architecture:
  32. X
  33. Xcp Makefile.SVR4i386 Makefile
  34. X
  35. Xedit Makefile to reflect your local preferences (BINDIR,MANDIR,MANEXT,etc..)
  36. X
  37. Xmake install
  38. X
  39. Xrebuild the kernel with "/etc/conf/bin/idbuild"
  40. X
  41. Xreboot the system.
  42. X
  43. X------------------------------------------------------------------------------
  44. X
  45. XHow to install advise for SunOS 4.1 (sun4c architecture):
  46. X
  47. Xcp Makefile.SUNOS Makefile
  48. X
  49. Xedit Makefile to reflect your local preferences (BINDIR,MANDIR,MANEXT,etc..)
  50. X
  51. Xin the advise source directory, "make install"
  52. X
  53. Xadd the suggested line to /etc/rc.local if you wish to have the driver
  54. Xautomatically loaded at system startup.
  55. X
  56. END_OF_FILE
  57.   if test 649 -ne `wc -c <'INSTALL'`; then
  58.     echo shar: \"'INSTALL'\" unpacked with wrong size!
  59.   fi
  60.   # end of 'INSTALL'
  61. fi
  62. if test -f 'advise.exec' -a "${1}" != "-c" ; then 
  63.   echo shar: Will not clobber existing file \"'advise.exec'\"
  64. else
  65.   echo shar: Extracting \"'advise.exec'\" \(179 characters\)
  66.   sed "s/^X//" >'advise.exec' <<'END_OF_FILE'
  67. X#!/bin/sh
  68. X
  69. Xif [ "$4" -gt "0" ]; then
  70. X
  71. X    devnode=/dev/advise
  72. X
  73. X    /bin/rm -f $devnode
  74. X    umask 077
  75. X# 37 is the clone device's major device number
  76. X    set -x
  77. X    /etc/mknod $devnode c 37 $4
  78. Xfi
  79. END_OF_FILE
  80.   if test 179 -ne `wc -c <'advise.exec'`; then
  81.     echo shar: \"'advise.exec'\" unpacked with wrong size!
  82.   fi
  83.   chmod +x 'advise.exec'
  84.   # end of 'advise.exec'
  85. fi
  86. if test -f 'advise.id/Master' -a "${1}" != "-c" ; then 
  87.   echo shar: Will not clobber existing file \"'advise.id/Master'\"
  88. else
  89.   echo shar: Extracting \"'advise.id/Master'\" \(33 characters\)
  90.   sed "s/^X//" >'advise.id/Master' <<'END_OF_FILE'
  91. Xadvise    -    Sciof    advise    0    0    1    1    -1
  92. END_OF_FILE
  93.   if test 33 -ne `wc -c <'advise.id/Master'`; then
  94.     echo shar: \"'advise.id/Master'\" unpacked with wrong size!
  95.   fi
  96.   # end of 'advise.id/Master'
  97. fi
  98. if test -f 'advise.id/Node' -a "${1}" != "-c" ; then 
  99.   echo shar: Will not clobber existing file \"'advise.id/Node'\"
  100. else
  101.   echo shar: Extracting \"'advise.id/Node'\" \(30 characters\)
  102.   sed "s/^X//" >'advise.id/Node' <<'END_OF_FILE'
  103. Xclone    advise    c    advise    0    0    600
  104. END_OF_FILE
  105.   if test 30 -ne `wc -c <'advise.id/Node'`; then
  106.     echo shar: \"'advise.id/Node'\" unpacked with wrong size!
  107.   fi
  108.   # end of 'advise.id/Node'
  109. fi
  110. if test -f 'advise.id/System' -a "${1}" != "-c" ; then 
  111.   echo shar: Will not clobber existing file \"'advise.id/System'\"
  112. else
  113.   echo shar: Extracting \"'advise.id/System'\" \(25 characters\)
  114.   sed "s/^X//" >'advise.id/System' <<'END_OF_FILE'
  115. Xadvise    Y    1    0    0    0    0    0    0    0
  116. END_OF_FILE
  117.   if test 25 -ne `wc -c <'advise.id/System'`; then
  118.     echo shar: \"'advise.id/System'\" unpacked with wrong size!
  119.   fi
  120.   # end of 'advise.id/System'
  121. fi
  122. if test -f 'advmod.id/Master' -a "${1}" != "-c" ; then 
  123.   echo shar: Will not clobber existing file \"'advmod.id/Master'\"
  124. else
  125.   echo shar: Extracting \"'advmod.id/Master'\" \(32 characters\)
  126.   sed "s/^X//" >'advmod.id/Master' <<'END_OF_FILE'
  127. Xadvmod    -    Siof    advmod    0    0    0    1    -1
  128. END_OF_FILE
  129.   if test 32 -ne `wc -c <'advmod.id/Master'`; then
  130.     echo shar: \"'advmod.id/Master'\" unpacked with wrong size!
  131.   fi
  132.   # end of 'advmod.id/Master'
  133. fi
  134. if test -f 'advmod.id/System' -a "${1}" != "-c" ; then 
  135.   echo shar: Will not clobber existing file \"'advmod.id/System'\"
  136. else
  137.   echo shar: Extracting \"'advmod.id/System'\" \(25 characters\)
  138.   sed "s/^X//" >'advmod.id/System' <<'END_OF_FILE'
  139. Xadvmod    Y    1    0    0    0    0    0    0    0
  140. END_OF_FILE
  141.   if test 25 -ne `wc -c <'advmod.id/System'`; then
  142.     echo shar: \"'advmod.id/System'\" unpacked with wrong size!
  143.   fi
  144.   # end of 'advmod.id/System'
  145. fi
  146. if test -f 'patchlevel.h' -a "${1}" != "-c" ; then 
  147.   echo shar: Will not clobber existing file \"'patchlevel.h'\"
  148. else
  149.   echo shar: Extracting \"'patchlevel.h'\" \(20 characters\)
  150.   sed "s/^X//" >'patchlevel.h' <<'END_OF_FILE'
  151. X#define version 2.0
  152. END_OF_FILE
  153.   if test 20 -ne `wc -c <'patchlevel.h'`; then
  154.     echo shar: \"'patchlevel.h'\" unpacked with wrong size!
  155.   fi
  156.   # end of 'patchlevel.h'
  157. fi
  158. echo shar: End of archive 2 \(of 2\).
  159. cp /dev/null ark2isdone
  160. MISSING=""
  161. for I in 1 2 ; do
  162.     if test ! -f ark${I}isdone ; then
  163.     MISSING="${MISSING} ${I}"
  164.     fi
  165. done
  166. if test "${MISSING}" = "" ; then
  167.     echo You have unpacked both archives.
  168.     rm -f ark[1-9]isdone
  169. else
  170.     echo You still must unpack the following archives:
  171.     echo "        " ${MISSING}
  172. fi
  173. exit 0
  174. exit 0 # Just in case...
  175.