home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume19 / zsh2.00 / patch02f < prev    next >
Text File  |  1991-05-16  |  6KB  |  216 lines

  1. Newsgroups: comp.sources.misc
  2. From: Paul Falstad <pfalstad@phoenix.princeton.edu>
  3. Subject:  v19i072:  zsh2.00 - The Z shell, Patch02f/6
  4. Message-ID: <1991May15.220428.7552@sparky.IMD.Sterling.COM>
  5. X-Md4-Signature: dbfe107184e0cb563d3aaeb5044f8242
  6. Date: Wed, 15 May 1991 22:04:28 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: Paul Falstad <pfalstad@phoenix.princeton.edu>
  10. Posting-number: Volume 19, Issue 72
  11. Archive-name: zsh2.00/patch02f
  12. Patch-To: zsh2.00: Volume 18, Issue 84-98
  13.  
  14. #!/bin/sh
  15. # this is zpatch.06 (part 6 of a multipart archive)
  16. # do not concatenate these parts, unpack them in order with /bin/sh
  17. # file zsh2.00/src/zle_tricky.pro continued
  18. #
  19. if test ! -r _shar_seq_.tmp; then
  20.     echo 'Please unpack part 1 first!'
  21.     exit 1
  22. fi
  23. (read Scheck
  24.  if test "$Scheck" != 6; then
  25.     echo Please unpack part "$Scheck" next!
  26.     exit 1
  27.  else
  28.     exit 0
  29.  fi
  30. ) < _shar_seq_.tmp || exit 1
  31. echo 'x - continuing file zsh2.00/src/zle_tricky.pro'
  32. sed 's/^X//' << 'SHAR_EOF' >> 'zsh2.00/src/zle_tricky.pro' &&
  33. void freemenu DCLPROTO((void));
  34. SHAR_EOF
  35. echo 'File zsh2.00/src/zle_tricky.pro is complete' &&
  36. chmod 0644 zsh2.00/src/zle_tricky.pro ||
  37. echo 'restore of zsh2.00/src/zle_tricky.pro failed'
  38. Wc_c="`wc -c < 'zsh2.00/src/zle_tricky.pro'`"
  39. test 1282 -eq "$Wc_c" ||
  40.     echo 'zsh2.00/src/zle_tricky.pro: original size 1282, current size' "$Wc_c"
  41. # ============= zsh2.00/scripts/ctoz ==============
  42. if test ! -d 'zsh2.00/scripts'; then
  43.     echo 'x - creating directory zsh2.00/scripts'
  44.     mkdir 'zsh2.00/scripts'
  45. fi
  46. echo 'x - extracting zsh2.00/scripts/ctoz (Text)'
  47. sed 's/^X//' << 'SHAR_EOF' > 'zsh2.00/scripts/ctoz' &&
  48. #! /bin/sh
  49. #
  50. # ctoz - alias conversion tool
  51. # This file is part of zsh, the Z shell.
  52. # (c) 1991 Paul Falstad
  53. #
  54. # This is a quick script to convert csh aliases to zsh aliases/functions.
  55. # Pipe the output of csh's alias command through this; it will generate
  56. # a series of alias/function definitions on stdout, suitable for
  57. # processing by zsh (probably also ksh or bash).
  58. #
  59. # This is not perfect, but it gets most common aliases; it should manage to
  60. # cut down a lot of the busy work.
  61. #
  62. sed -e 's/    (\(.*\))/    \1/' >/tmp/cz$$.1
  63. grep ! /tmp/cz$$.1 >/tmp/cz$$.2
  64. grep -v ! /tmp/cz$$.1 >/tmp/cz$$.3
  65. sed -e "s/'/'"\\\\"''"/g -e 's/^\([^    ]*\)    \(.*\)$/alias \1='"'\2'/" \
  66. X    /tmp/cz$$.3
  67. sed -e 's/![:#]*/$/g' -e 's/^\([^    ]*\)    \(.*\)$/\1 () { \2 }/' /tmp/cz$$.2
  68. rm /tmp/cz$$.?
  69. #
  70. # in case your mailer eats tabs, here it is again, with the tabs
  71. # marked with a T:
  72. #
  73. #sed -e 's/T(\(.*\))/T\1/' >/tmp/cz$$.1
  74. #grep ! /tmp/cz$$.1 >/tmp/cz$$.2
  75. #grep -v ! /tmp/cz$$.1 >/tmp/cz$$.3
  76. #sed -e "s/'/'"\\\\"''"/g -e 's/^\([^T]*\)T\(.*\)$/alias \1='"'\2'/" \
  77. #    /tmp/cz$$.3
  78. #sed -e 's/![:#]*/$/g' -e 's/^\([^T]*\)T\(.*\)$/\1 () { \2 }/' /tmp/cz$$.2
  79. #rm /tmp/cz$$.?
  80. SHAR_EOF
  81. chmod 0644 zsh2.00/scripts/ctoz ||
  82. echo 'restore of zsh2.00/scripts/ctoz failed'
  83. Wc_c="`wc -c < 'zsh2.00/scripts/ctoz'`"
  84. test 1137 -eq "$Wc_c" ||
  85.     echo 'zsh2.00/scripts/ctoz: original size 1137, current size' "$Wc_c"
  86. # ============= zsh2.00/src/signals.h.sample ==============
  87. echo 'x - extracting zsh2.00/src/signals.h.sample (Text)'
  88. sed 's/^X//' << 'SHAR_EOF' > 'zsh2.00/src/signals.h.sample' &&
  89. Your signals.h file should look something like this.  If it doesn't,
  90. perhaps your csh or ed is different.
  91. X
  92. /* this file is created automatically by buildzsh */
  93. /* if all this is wrong, blame csh ;-) */
  94. X
  95. #define SIGCOUNT       31
  96. X
  97. #ifdef GLOBALS
  98. X
  99. char *sigmsg[SIGCOUNT+2] = {
  100. X    "done",
  101. X    "hangup",
  102. X    "interrupt",
  103. X    "quit",
  104. X    "illegal instruction",
  105. X    "trace trap",
  106. X    "abort",
  107. X    "EMT instruction",
  108. X    "floating point exception",
  109. X    "killed",
  110. X    "bus error",
  111. X    "segmentation fault",
  112. X    "bad system call",
  113. X    "broken pipe",
  114. X    "SIGALRM",
  115. X    "terminated",
  116. X    "SIGURG",
  117. #ifdef USE_SUSPENDED
  118. X    "suspended (signal)",
  119. #else
  120. X    "stopped (signal)",
  121. #endif
  122. #ifdef USE_SUSPENDED
  123. X    "suspended",
  124. #else
  125. X    "stopped",
  126. #endif
  127. X    "continued",
  128. X    "SIGCHLD",
  129. #ifdef USE_SUSPENDED
  130. X    "suspended (tty input)",
  131. #else
  132. X    "stopped (tty input)",
  133. #endif
  134. #ifdef USE_SUSPENDED
  135. X    "suspended (tty output)",
  136. #else
  137. X    "stopped (tty output)",
  138. #endif
  139. X    "SIGIO",
  140. X    "cpu limit exceeded",
  141. X    "filesize limit exceeded",
  142. X    "virtual time alarm",
  143. X    "SIGPROF",
  144. X    "SIGWINCH",
  145. X    "SIGLOST",
  146. X    "SIGUSR1",
  147. X    "SIGUSR2",
  148. X    NULL
  149. };
  150. X
  151. char *sigs[SIGCOUNT+4] = {
  152. X    "EXIT",
  153. X    "HUP",
  154. X    "INT",
  155. X    "QUIT",
  156. X    "ILL",
  157. X    "TRAP",
  158. X    "ABRT",
  159. X    "EMT",
  160. X    "FPE",
  161. X    "KILL",
  162. X    "BUS",
  163. X    "SEGV",
  164. X    "SYS",
  165. X    "PIPE",
  166. X    "ALRM",
  167. X    "TERM",
  168. X    "URG",
  169. X    "STOP",
  170. X    "TSTP",
  171. X    "CONT",
  172. X    "CHLD",
  173. X    "TTIN",
  174. X    "TTOU",
  175. X    "IO",
  176. X    "XCPU",
  177. X    "XFSZ",
  178. X    "VTALRM",
  179. X    "PROF",
  180. X    "WINCH",
  181. X    "LOST",
  182. X    "USR1",
  183. X    "USR2",
  184. X    "ERR",
  185. X    "DEBUG",
  186. X    NULL
  187. };
  188. X
  189. #else
  190. X
  191. extern char *sigs[SIGCOUNT+4],*sigmsg[SIGCOUNT+2];
  192. X
  193. #endif
  194. SHAR_EOF
  195. chmod 0644 zsh2.00/src/signals.h.sample ||
  196. echo 'restore of zsh2.00/src/signals.h.sample failed'
  197. Wc_c="`wc -c < 'zsh2.00/src/signals.h.sample'`"
  198. test 1429 -eq "$Wc_c" ||
  199.     echo 'zsh2.00/src/signals.h.sample: original size 1429, current size' "$Wc_c"
  200. rm -f _shar_seq_.tmp
  201. patch -p0 <patches
  202. rm -f patches zsh2.00/src/zle_basic.pro
  203. chmod 755 zsh2.00/src/buildzsh
  204. echo You have unpacked the last part
  205. exit 0
  206.               Paul Falstad  pfalstad@phoenix.princeton.edu
  207.          And on the roads, too, vicious gangs of KEEP LEFT signs!
  208.      If Princeton knew my opinions, they'd have expelled me long ago.
  209.  
  210. exit 0 # Just in case...
  211. -- 
  212. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  213. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  214. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  215. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  216.