home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / sendmail / uk-sendmail2.1 / Support / SysV.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1991-06-11  |  723 b   |  36 lines

  1. #!/bin/sh
  2. #
  3. #  This shell script converts the BSD dependent parts of the main shell
  4. #  scripts into something suitable for SystemV.
  5. #
  6. #  This must be run in the top level directory of the sendmail package.
  7. #
  8.  
  9. for i in Config Dombuild Chnbuild
  10. do
  11.     if [ ! -f $i ]
  12.     then
  13.         echo $i non-existent
  14.         exit 1
  15.     fi
  16.  
  17.     if [ ! -f $i.bsd ]
  18.     then
  19.         mv $i $i.bsd
  20.     fi
  21. done
  22.  
  23.  
  24. #  The top level make file
  25.  
  26. sed    -e 's/echo -n/echo/' -e 's/\.\.\."/...\\c"/'    Config.bsd > Config
  27.  
  28. #  The channel make file
  29.  
  30. sed    -e "s;fmt | sed;nroff | sed -e '/^$/d' -e;"    Chnbuild.bsd > Chnbuild
  31.  
  32. #  The domain make file
  33.  
  34. sed    -e "s;tail -r \(...S12\);pr -t -n \1 | sort -r | sed 's/^......//';" \
  35.     -e "s;fmt | sed;nroff | sed -e '/^$/d' -e;"    Dombuild.bsd > Dombuild
  36.