home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume26 / cook-1.4 / part01 / man1 / install.sh
Encoding:
Linux/UNIX/POSIX Shell Script  |  1993-05-03  |  1.0 KB  |  40 lines

  1. #! /bin/sh
  2. #
  3. #    cook - file construction tool
  4. #    Copyright (C) 1993 Peter Miller.
  5. #    All rights reserved.
  6. #
  7. #    This program is free software; you can redistribute it and/or modify
  8. #    it under the terms of the GNU General Public License as published by
  9. #    the Free Software Foundation; either version 2 of the License, or
  10. #    (at your option) any later version.
  11. #
  12. #    This program is distributed in the hope that it will be useful,
  13. #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. #    GNU General Public License for more details.
  16. #
  17. #    You should have received a copy of the GNU General Public License
  18. #    along with this program; if not, write to the Free Software
  19. #    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. #
  21. # MANIFEST: shell script to install section 1 manual pages
  22. #
  23. case $# in
  24. 1)
  25.     ;;
  26. *)
  27.     echo "usage: $0 somewhere/man1" 1>&2
  28.     exit 1
  29.     ;;
  30. esac
  31.  
  32. set -e
  33. cd man1
  34. for file in *.1
  35. do
  36.     echo "soelim $file > $1/$file"
  37.     soelim $file > $1/$file
  38. done
  39. exit 0
  40.