~ubuntu-branches/ubuntu/saucy/tex-common/saucy

« back to all changes in this revision

Viewing changes to scripts/update-fmtlang

  • Committer: Package Import Robot
  • Author(s): Norbert Preining
  • Date: 2013-05-12 19:09:17 UTC
  • Revision ID: package-import@ubuntu.com-20130512190917-mh93u6m6odmwngnn
Tags: 4.03
update-fmtlang: make sure we find the head files in both the old
(<= TL2012, ie texlive/texmf/) and new (>= TL2013, ie texlive/texmf-dist)

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
HYPHENMODE=nohyphen
30
30
HEADFILE=/not/a/real/file/we/ever/will/see/on/a/system
 
31
HEADBACK=/not/a/real/file/we/ever/will/see/on/a/system
31
32
 
32
33
if [ "$progname" = "update-language" ] ; then
33
34
    update-language-dat
36
37
    exit 0
37
38
elif [ "$progname" = "update-language-lua" ] ; then
38
39
    CNFDIR=hyphen.d
39
 
    HEADFILE=/usr/share/texlive/texmf/tex/generic/config/language.us.lua
 
40
    HEADFILE=/usr/share/texlive/texmf-dist/tex/generic/config/language.us.lua
 
41
    HEADBACK=/usr/share/texlive/texmf/tex/generic/config/language.us.lua
40
42
    HYPHENMODE=luatex
41
43
    # System-wide configuration directory
42
44
    SYSWIDE_CONFDIR=/etc/texmf/$CNFDIR
54
56
    SHORT_DESC="Generate language.dat.lua, the hyphenation configuration file for luaTeX and friends"
55
57
elif [ "$progname" = "update-language-def" ] ; then
56
58
    CNFDIR=hyphen.d
57
 
    HEADFILE=/usr/share/texlive/texmf/tex/generic/config/language.us.def
 
59
    HEADFILE=/usr/share/texlive/texmf-dist/tex/generic/config/language.us.def
 
60
    HEADBACK=/usr/share/texlive/texmf/tex/generic/config/language.us.def
58
61
    HYPHENMODE=etex
59
62
    # System-wide configuration directory
60
63
    SYSWIDE_CONFDIR=/etc/texmf/$CNFDIR
72
75
    SHORT_DESC="Generate language.def, the hyphenation configuration file for eTeX and friends"
73
76
elif [ "$progname" = "update-language-dat" ] ; then
74
77
    CNFDIR=hyphen.d
75
 
    HEADFILE=/usr/share/texlive/texmf/tex/generic/config/language.us
 
78
    HEADFILE=/usr/share/texlive/texmf-dist/tex/generic/config/language.us
 
79
    HEADBACK=/usr/share/texlive/texmf/tex/generic/config/language.us
76
80
    HYPHENMODE=latex
77
81
    # System-wide configuration directory
78
82
    SYSWIDE_CONFDIR=/etc/texmf/$CNFDIR
801
805
    # we are creating a hyphenation file, include the head file
802
806
    if [ -r "$HEADFILE" ] ; then
803
807
        cat "$HEADFILE" >> "$tempfile"
 
808
    elif [ -r "$HEADBACK" ] ; then
 
809
        cat "$HEADBACK" >> "$tempfile"
804
810
    else
805
811
        echo "${WRITECC} HEADFILE $deffile not found" >> "$tempfile"
806
812
    fi