home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume35 / procmail / part01 / procmail280 / man / mansed < prev    next >
Encoding:
Text File  |  1993-02-05  |  1.2 KB  |  89 lines

  1. #! /bin/sh
  2. :
  3. #$Id: mansed,v 1.6 1992/11/24 15:59:43 berg Exp $
  4.  
  5. test 5 != $# &&
  6.  echo "Don't start this script directly, use \`make'" && exit 1
  7.  
  8. SHELL=$1
  9. SRC="$2"
  10. DEST="$3"
  11. RM="$4"
  12. DEVNULL=$5
  13. export SHELL SRC DEST RM DEVNULL
  14.  
  15. if test ! -f "$DEST"
  16. then
  17.  trap "$RM \"$DEST\";exit 1" 1 2 3 15
  18. fi
  19.  
  20. (cat <<\HERE
  21. .de Id
  22. .ds Rv \\$3
  23. .ds Dt \\$4
  24. ..
  25. .de Sh
  26. .br
  27. .ne 11
  28. .SH "\\$1"
  29. ..
  30. .de Ss
  31. .br
  32. .ne 10
  33. .SS "\\$1"
  34. ..
  35. .de Tp
  36. .br
  37. .ne 9
  38. .TP \\$1
  39. ..
  40. .de Rs
  41. .na
  42. .nf
  43. .RS
  44. ..
  45. .de Re
  46. .RE
  47. .fi
  48. .ad
  49. ..
  50. HERE
  51. cat "$SRC"
  52. expr match "$DEST" '.*[18]$' >$DEVNULL && cat <<HERE
  53. .Sh SOURCE
  54. This program is part of the
  55. .I procmail mail-processing-package
  56. (+PM_VERSION+) available at your nearest USENET comp.sources.misc archive, or
  57. at ftp.informatik.rwth-aachen.de (137.226.112.172) as
  58. .BR pub/unix/procmail.tar.Z .
  59. .Sh MAILINGLIST
  60. There exists a mailinglist for questions relating to any program in the
  61. procmail package:
  62. .RS
  63. +PM_MAILINGLIST+
  64. .RS
  65. for submitting questions/answers.
  66. .RE
  67. +PM_MAILINGLISTR+
  68. .RS
  69. for subscription requests.
  70. .RE
  71. .RE
  72. HERE
  73. cat <<HERE
  74. .Sh AUTHOR
  75. Stephen R. van den Berg at RWTH-Aachen, Germany
  76. .Rs
  77. +MY_MAIL_ADDR+
  78. +MY_ALT_MAIL_ADDR+
  79. .Re
  80. HERE
  81.  )| sed -f man.sed >"$DEST"
  82.  
  83. if test -f "$DEST"
  84. then
  85.  exit 0
  86. else
  87.  exit 1
  88. fi
  89.