pdftexi2dvi 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/sh
  2. # $Id$
  3. # Written by Thomas Esser. Public domain.
  4. # Execute texi2dvi --pdf.
  5. test -f /bin/ksh && test -z "$RUNNING_KSH" \
  6. && { UNAMES=`uname -s`; test "x$UNAMES" = xULTRIX; } 2>/dev/null \
  7. && { RUNNING_KSH=true; export RUNNING_KSH; exec /bin/ksh $0 ${1+"$@"}; }
  8. unset RUNNING_KSH
  9. test -f /bin/bsh && test -z "$RUNNING_BSH" \
  10. && { UNAMES=`uname -s`; test "x$UNAMES" = xAIX; } 2>/dev/null \
  11. && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1+"$@"}; }
  12. unset RUNNING_BSH
  13. # hack around a bug in zsh:
  14. test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
  15. rcs_revision='$Revision$'
  16. rcs_version=`set - $rcs_revision; echo $2`
  17. # special-case --version following GNU standards for identifying the
  18. # program name. If --version is specified as other than the first
  19. # argument, we don't output the standard name, but then, we're not
  20. # obliged to.
  21. if test "x$1" = x--version; then
  22. cat <<EOF
  23. texi2pdf (GNU Texinfo 6.3) $rcs_version
  24. Copyright (C) 2016 Free Software Foundation, Inc.
  25. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  26. This is free software: you are free to change and redistribute it.
  27. There is NO WARRANTY, to the extent permitted by law.
  28. EOF
  29. exit 0
  30. fi
  31. texi2dvi --pdf ${1+"$@"}