home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / wvhtm064.zip / wv / wvCleanLatex < prev    next >
Text File  |  2001-02-04  |  388b  |  20 lines

  1. #!/bin/sh
  2.  
  3. prefix=/usr/local
  4. exec_prefix=${prefix}
  5. datadir=${prefix}/share
  6.  
  7. # argument checking
  8. if [ ${#} -ne "2" ]; then
  9.     echo "Usage: ${0} <word document> <latex output file>"
  10.     exit 1
  11. fi
  12.  
  13. which wvWare >/dev/null 2>&1
  14. if [ ${?} -ne "0" ]; then
  15.     echo "Could not find required program 'wvWare'"
  16.     exit 1
  17. fi
  18.  
  19. wvWare -x ${datadir}/wv/wvCleanLaTeX.xml "${1}" > "${2}"
  20.