~ubuntu-branches/ubuntu/karmic/cjk/karmic

« back to all changes in this revision

Viewing changes to utils/hbf2gf/scripts/teTeX-0.4/MakeTeXPK.diff

  • Committer: Bazaar Package Importer
  • Author(s): Danai SAE-HAN (韓達耐)
  • Date: 2006-11-01 00:31:57 UTC
  • Revision ID: james.westby@ubuntu.com-20061101003157-jppzphxw4tti1wlu
Tags: upstream-4.7.0+cvs20061019
Import upstream version 4.7.0+cvs20061019

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- MakeTeXPK.orig      Sun Feb 23 22:12:05 1997
 
2
+++ MakeTeXPK   Tue Aug 18 08:07:40 1998
 
3
@@ -80,18 +80,57 @@
 
4
 : ${MAKETEXDIR=$TEXMF/maketex}
 
5
 export TEXMF MAKETEXDIR
 
6
 
 
7
+unset cmd
 
8
+
 
9
+# test for TTF fonts
 
10
+if test -z "$cmd"; then
 
11
+  ttf2pk -q $NAME $DPI
 
12
+  errstatus=$?
 
13
+
 
14
+  if test $errstatus -ne 2; then
 
15
+    if test $errstatus -ne 0; then
 
16
+      echo "ttf2pk failed" >&2
 
17
+      exit 1
 
18
+    fi
 
19
+    MODE=ttf2pk                # preferred mode for TDS would be `modeless'
 
20
+    cmd=true
 
21
+  fi
 
22
+fi
 
23
+
 
24
+# test for HBF fonts
 
25
+if test -z "$cmd"; then
 
26
+  hbf2gf -q -p $NAME $DPI
 
27
+  errstatus=$?
 
28
+
 
29
+  if test $errstatus -ne 2; then
 
30
+    if test $errstatus -ne 0; then
 
31
+      echo "hbf2gf failed" >&2
 
32
+      exit 1
 
33
+    fi
 
34
+    MODE=hbf2gf                # preferred mode for TDS would be `modeless'
 
35
+    cmd=true
 
36
+  fi
 
37
+fi
 
38
+
 
39
+unset psline
 
40
+
 
41
 # grep for the font in $PSMAPFILE, if some ps-to-pk is claimed to be supported.
 
42
 # We have to figure out the name of the base font -- $NAME is probably
 
43
 # something like pplr, but it's rpplr or pplr0 or pplr8r that's in psfonts.map.
 
44
-pattern="^r?$NAME"'(0|8r)?([   ]|$)' 
 
45
-psline=`egrep "$pattern" $PSMAPFILE`
 
46
+if test -z "$cmd"; then
 
47
+  pattern="^r?$NAME"'(0|8r)?([         ]|$)' 
 
48
+  psline=`egrep "$pattern" $PSMAPFILE`
 
49
+fi
 
50
+
 
51
 if test -n "$psline"; then
 
52
   cmd="gsftopk $NAME $DPI"
 
53
   MODE=gsftopk
 
54
   # some installations have set up gs in such a way that creating files
 
55
   # is only allowed if the parameter -DNOSAFER is used:
 
56
   GS_OPTIONS=-DNOSAFER; export GS_OPTIONS
 
57
-else
 
58
+fi
 
59
+
 
60
+if test -z "$cmd"; then
 
61
   # If an explicit mode is not supplied, try to guess. You can get a
 
62
   # list of extant modes from ftp.cs.umb.edu:pub/tex/modes.mf.
 
63
   if test -z "$MODE" || test "$MODE" = default; then