home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 8 / CDACTUAL8.iso / docs / linux.faq / linux-fa.sou / linux-fa / buildsend.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1996-02-07  |  1.6 KB  |  57 lines

  1. #!/bin/sh
  2. # Copyright (C) 1993-1995 Ian Jackson.
  3.  
  4. # This file is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # It is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with GNU Emacs; see the file COPYING.  If not, write to
  16. # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17. # Boston, MA 02111-1307, USA.
  18.  
  19. # (Note: I do not consider works produced using these BFNN processing
  20. # tools to be derivative works of the tools, so they are NOT covered
  21. # by the GPL.  However, I would appreciate it if you credited me if
  22. # appropriate in any documents you format using BFNN.)
  23.  
  24. set -e
  25.  
  26. echo "this time: $1   last time: $2"
  27.  
  28. echo converting 1 ...
  29. ./bfnnconv.pl linux-faq.bfnn
  30. echo converting 2 ...
  31. ./bfnnconv.pl linux-faq.bfnn
  32. echo formatting 1 ...
  33. lout linux-faq.lout >/dev/null
  34. echo formatting 2 ...
  35. lout linux-faq.lout >linux-faq.ps
  36. echo changes ...
  37. ./changes.text "$2"
  38. echo tarring ...
  39. ./mktar.sh
  40.  
  41. if [ x != "x$1" ]
  42. then
  43.     echo archiving to $1 ...
  44.     mkdir $1
  45.     cp linux-faq.ascii linux-faq.source.tar.gz $1/.
  46.     echo exporting ...
  47.     cp linux-faq.tar.gz linux-faq.html.tar.gz $HOME/out/.
  48.     echo posting ...
  49.     sh ./linux-faq.post
  50.     sleep 20
  51.     echo posting changes ...
  52.     sh ./changes.post
  53. fi
  54.  
  55. echo done.
  56. exit 0
  57.