Group :: Publishing
RPM: tetex
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: tetex-3.0-alt1-tfmgen.patch
Download
Download
diff -ur tetex-src-3.0.orig02/texk/kpathsea/mktextfm tetex-src-3.0/texk/kpathsea/mktextfm
--- tetex-src-3.0.orig02/texk/kpathsea/mktextfm 2004-07-04 14:31:51 +0400
+++ tetex-src-3.0/texk/kpathsea/mktextfm 2005-02-23 05:40:13 +0300
@@ -132,6 +132,11 @@
echo "$TFMDESTDIR/$TFMNAME" >$STDOUT
echo "$progname: $TFMDESTDIR/$TFMNAME: successfully generated." >&2
+# This is a hack to build the TFM only
+if test -n "$MT_DONT_INSTALL_PK" ; then
+ exit 0
+fi
+
# Since we probably made a GF(->PK) file, too, may as well install it if
# it's needed.
cd $TEMPDIR
diff -ur tetex-src-3.0.orig02/texk/tetex/allcm tetex-src-3.0/texk/tetex/allcm
--- tetex-src-3.0.orig02/texk/tetex/allcm 2004-06-20 16:38:02 +0400
+++ tetex-src-3.0/texk/tetex/allcm 2005-02-23 05:40:30 +0300
@@ -13,6 +13,8 @@
# hack around a bug in zsh:
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
+DVIPS=dvips
+
progname=`basename $0`
tmpdir=${TMP-/tmp}/$progname.$$
@@ -23,15 +25,26 @@
encoding=OT1;;
esac
+while test -n "$1" ; do
case "$1" in
-r)
DVIPS=dvired
shift
;;
+ -n)
+ DONTRUNDVIPS=1
+ shift
+ ;;
+ -e)
+ shift
+ encoding=$1
+ shift
+ ;;
*)
DVIPS=dvips
;;
esac
+done
body()
{
@@ -106,6 +119,7 @@
latex allcm11 >/dev/null
latex allcm12 >/dev/null
+if test -z "$DONTRUNDVIPS" ; then
echo >&2
echo "---------------------------------------------------------------------" >&2
echo ">>>>>>>>>>> Now, calling $DVIPS to make missing fonts... <<<<<<<<<<" >&2
@@ -113,6 +127,6 @@
$DVIPS ${1+"$@"} -V -f allcm10 > /dev/null
$DVIPS ${1+"$@"} -V -f allcm11 > /dev/null
$DVIPS ${1+"$@"} -V -f allcm12 > /dev/null
-
+fi
cd /
rm -rf $tmpdir