home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / wvwar062.zip / doc / x / wv.sh / wvCleanLatex < prev    next >
Text File  |  2000-10-26  |  389b  |  20 lines

  1. #!/bin/sh
  2.  
  3. prefix=/usr/local
  4. exec_prefix=${prefix}
  5. libdir=${exec_prefix}/lib
  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 ${libdir}/wv/wvCleanLaTeX.xml "${1}" > "${2}"
  20.