Commit 34b4aa3a authored by Atsuhito Kohda's avatar Atsuhito Kohda

Imported Debian patch 0.5~svn808-1

parents 381b1497 5af7e9a3
"-//Apple Computer//DTD PLIST 1.0//EN"
<plist version="1.0">
<string>TeX Document</string>
<string>PDF Document</string>
<string>TeXworks version 0.5 (r.1)&#xA;(C) 2007-2011 Jonathan Kew, Stefan L&#xF6;ffler&#xA;Released under GPL (v2.0 or later)</string>
<string>0.5 (r.1)</string>
<string>0.5 (r.1)</string>
This file describes do's and don'ts, good practices, and requirements when
packaging TeXworks.
When you have read this far, you are probably interested in packaging TeXworks.
First of all, thank you for your commitment, it is very welcome. Before you
start, however, you should check that no packages for the system you intend to
target exist already. Currently, packages for Windows and Ubuntu are provided by
the project maintainers, and packages for several other Linux distributions have
been contributed by members of the community.
If you package TeXworks successfully, please drop by the mailing list and tell
us about it :).
General guidelines
This section describes how TeXworks should be packaged. It does not deal with
the building process itself, however (see the README and for some more information on that).
Instead, it deals with the principal decisions.
* TeXworks consists of the core program and plugins. If possibly, the plugins
should be made available separately (unless noted otherwise). The are to be
considered optional (Debian policy: they are suggested, not recommended,
meaning that running TeXworks without them is perfectly reasonable).
* All plugins that can be built should be built.
* Stable releases feature a copy of the manual. Like the plugins, this should
be packaged, preferably as a separate, optional package (Debian policy: a
suggested package).
* It is strongly recommended to distribute TeXworks with the poppler encoding
data as well as the 14 PDF base fonts or suitable (i.e., metrically
equivalent) replacements. On Linux, these are typically provided by the
system and/or packages which the TeXworks package should depend on. Note that
this is not a strict dependence, as TeXworks will run without poppler-data or
the base-14 fonts, but some files may not be displayed correctly (Debian
policy: the packages are recommended, meaning that they are found on all but
the most unusual systems). Note that when providing poppler-data and/or fonts
yourself in the package, you most likely will need to patch the poppler
library itself as well.
See below for further information on this issue and how to test proper
As mentioned in the guidelines, there are several intricacies concerning the
poppler library.
In order to properly display PDF files without embedded fonts - and to conform
to the PDF standard - TeXworks package must ensure that the base 14 fonts are
available on the system. The preferable way to do that is to pull in system
packages and/or use alternative fonts found on the system. The remaining files
can be obtained, e.g., from
(note that those fonts have been renamed according to which must be undone as poppler
expects the original filenames). The following pfb files are needed:
d050000l.pfb, n019003l.pfb, n019004l.pfb, n019023l.pfb, n019024l.pfb,
n021003l.pfb, n021004l.pfb, n021023l.pfb, n021024l.pfb, n022003l.pfb,
n022004l.pfb, n022023l.pfb, n022024l.pfb, s050000l.pfb.
If you provide the base 14 fonts yourself, you need to make sure poppler picks
them up. To achieve that, you most likely will need to patch poppler
accordingly. See lib-patches/poppler-win32-font-handling.patch for an example
for poppler-0.16 on Windows.
To check if the fonts are picked up correctly, use the base14-fonts testcase
Moreover, the poppler library needs the poppler-data from (this particularly affects displaying CJK
documents). By default, TeXworks looks for a folder named "poppler-data"
alongside the main application on Windows and Mac (see src/TWApp.cpp -
TWApp::init()). It only sets this directory once while starting up, however, so
you need ensure poppler doesn't mess with it by building poppler with the
lib-patches/poppler-qt4-globalparams.patch patch.
To check if poppler-data is picked up properly, use the poppler-data testcase
Other libraries and patches
* Qt 4.7.0 and 4.7.1 have a bug crashing TeXworks occasionally when using the
"Highlight current line" feature together with "Wrap Lines" due to a memory
overflow. Use lib-patches/qt-4_7-qpathclipper.patch to fix that.
Further information and help
Mailing list:
......@@ -48,7 +48,7 @@
<string>TeXworks version 0.4.0 (r.759)&#xA;(C) 2007-2011 Jonathan Kew, Stefan L&#xF6;ffler&#xA;Released under GPL (v2.0 or later)</string>
<string>TeXworks version 0.5 (r.1)&#xA;(C) 2007-2011 Jonathan Kew, Stefan L&#xF6;ffler&#xA;Released under GPL (v2.0 or later)</string>
......@@ -60,9 +60,9 @@
<string>0.4.0 (r.759)</string>
<string>0.5 (r.1)</string>
<string>0.4.0 (r.759)</string>
<string>0.5 (r.1)</string>
......@@ -36,6 +36,12 @@ QMAKE_CXXFLAGS += -DTW_BUILD_ID=personal
# comment this out if poppler's xpdf headers are not available on the build system
# maximum compression for resources (unless that only produces a 5% size decrease)
QMAKE_RESOURCE_FLAGS += -threshold 5 -compress 9
# avoid warnings about "#pragma mark" on non-Mac/non-XCode systems
QMAKE_CXXFLAGS_WARN_ON += -Wno-unknown-pragmas
# put all symbols in the dynamic symbol table to plugins can access them; if not
# given, plugin loading may fail with a debug warning for some plugins
# Note: only works for gnu compilers; need to check what flags to pass to other compilers
......@@ -157,12 +163,14 @@ HEADERS += src/TWApp.h \
src/PrefsDialog.h \
src/TemplateDialog.h \
src/HardWrapDialog.h \
src/ResourcesDialog.h \
src/ScriptManager.h \
src/ConfirmDelete.h \
src/TWVersion.h \
src/SvnRev.h \
src/synctex_parser.h \
src/synctex_parser_utils.h \
src/ClickableLabel.h \
src/ConfigurableApp.h \
......@@ -176,6 +184,7 @@ FORMS += src/TeXDocument.ui \
src/ToolConfig.ui \
src/TemplateDialog.ui \
src/HardWrapDialog.ui \
src/ResourcesDialog.ui \
src/ScriptManager.ui \
......@@ -196,6 +205,7 @@ SOURCES += src/main.cpp \
src/PrefsDialog.cpp \
src/TemplateDialog.cpp \
src/HardWrapDialog.cpp \
src/ResourcesDialog.cpp \
src/ScriptManager.cpp \
src/ConfirmDelete.cpp \
src/synctex_parser.c \
......@@ -5,8 +5,7 @@ An environment for authoring TeX (LaTeX, ConTeXt, etc) documents, with
a Unicode-based, TeX-aware editor, integrated PDF viewer, and a clean,
simple interface accessible to casual and non-technical users.
Note to use synctex feature you need to install TeX Live 2009 which
will be in Debian soon.
Note to use SyncTeX feature you need to install TeX Live 2009 or later.
Temporary modifications:
1. I borrowed texworks.desktop, texworks.xpm and texworks.1 by
texworks (0.5~svn808-1) unstable; urgency=low
* New Upstream Release (rev. 808). (Closes: #625543)
* Fixed/Updated copyright file; added Stefan Löffler as Upstream Authors.
* Updated README.Debian a bit.
* Changed to use texworks.desktop, texworks.1 and .png files
of source trees instead of obsolete ones under debian.
To do so, refined rules file a bit.
* Updated control file and removed unnecessary and COPYING.
-- Atsuhito KOHDA <> Fri, 06 May 2011 12:54:27 +0900
texworks (0.4.0-2) unstable; urgency=low
* Added english manual.
......@@ -11,7 +11,7 @@ Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Recommends: texlive-latex-base, texworks-help-en
Suggests: texlive-xetex, texworks-scripting-lua, texworks-scripting-python
Description: An environment for authoring TeX (LaTeX, ConTeXt, etc) documents
Description: Environment for authoring TeX (LaTeX, ConTeXt, etc) documents
An environment for authoring TeX (LaTeX, ConTeXt, etc) documents, with
a Unicode-based, TeX-aware editor, integrated PDF viewer, and a clean,
simple interface accessible to casual and non-technical users.
......@@ -35,10 +35,3 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, texworks
Description: Plugin to bring Python scripting to TeXworks
For further information, see
Package: texworks-help-en
Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends}
Recommends: texworks
Description: English help files for TeXworks
For furter information, see
......@@ -7,12 +7,13 @@ It was downloaded from <>
Upstream Authors:
Jonathan Kew <jfkthame AT googlemail DOT com>
Stefan Löffler <st DOT loeffler AT gmail DOT com>
Jérôme Laurens <jerome DOT laurens AT u-bourgogne DOT fr>
Till Tantau <tantau AT users DOT sourceforge DOT net>
TeXworks is copyright (c) 2007-09 by Jonathan Kew.
TeXworks is copyright (C) 2007-2011 by Jonathan Kew and Stefan Löffler.
The SyncTeX code is copyright (c) 2008, 2009 by Jérôme Laurens
Beamer templates are Copyright 2004 by Till Tantau
--- texworks-0.3/src/TWApp.cpp.orig 2010-02-22 13:19:33.000000000 +0900
+++ texworks-0.3/src/TWApp.cpp 2010-02-22 13:20:27.000000000 +0900
@@ -841,6 +841,8 @@
@@ -832,6 +832,8 @@
<< Engine("pdfLaTeX", "pdflatex" EXE, QStringList("$synctexoption") << "$fullname", true)
<< Engine("XeTeX", "xetex" EXE, QStringList("$synctexoption") << "$fullname", true)
<< Engine("XeLaTeX", "xelatex" EXE, QStringList("$synctexoption") << "$fullname", true)
--- texworks-0.3~svn569.orig/
+++ texworks-0.3~svn569/
@@ -31,7 +31,7 @@
# packagers should override this to identify the source of the particular TeXworks build;
# avoid spaces or other chars that would need quoting on the command line
# comment this out if poppler's xpdf headers are not available on the build system
@@ -94,8 +94,8 @@
# Enclose the path in \\\" (which later gets expanded to \", which in turn
# gets expanded to " in the c++ code)
- QMAKE_CXXFLAGS += -DTW_HELPPATH=\\\"/usr/local/share/texworks-help\\\"
- QMAKE_CXXFLAGS += -DTW_PLUGINPATH=\\\"/usr/local/lib/texworks\\\"
+ QMAKE_CXXFLAGS += -DTW_HELPPATH=\\\"/usr/share/texworks-help\\\"
+ QMAKE_CXXFLAGS += -DTW_PLUGINPATH=\\\"/usr/lib/texworks\\\"
QMAKE_CXXFLAGS += -DTW_DICPATH=\\\"/usr/share/myspell/dicts\\\"
......@@ -17,10 +17,6 @@ configure: configure-stamp
# Add here commands to configure the package.
# patch -p1 < ./debian/patch-print
# uudecode debian/document-print.png.enc
# mv document-print.png res/tango/
patch -p1 < ./debian/patch-plugin
patch -p1 < ./debian/patch-luatex
# qmake-qt4
......@@ -34,10 +30,24 @@ build-stamp: configure-stamp
# Add here commands to compile the package.
# Lua plugin
cd $(PLIDIR) && qmake-qt4 -after 'target.path = /usr/lib/texworks' && $(MAKE)
cd $(PLIDIR) && qmake-qt4 -after \
'QMAKE_CXXFLAGS -= -DTW_BUILD_ID=personal -DTW_HELPPATH=\\\"/usr/local/share/texworks-help\\\" -DTW_PLUGINPATH=\\\"/usr/local/lib/texworks\\\"' \
'QMAKE_CXXFLAGS += -DTW_BUILD_ID=Debian -DTW_HELPPATH=\\\"/usr/share/texworks-help\\\" -DTW_PLUGINPATH=\\\"/usr/lib/texworks\\\"' \
'target.path = /usr/lib/texworks' \
&& $(MAKE)
# Python plugin
cd $(PLIPYT) && qmake-qt4 -after 'target.path = /usr/lib/texworks' && $(MAKE)
qmake-qt4 && $(MAKE)
cd $(PLIPYT) && qmake-qt4 -after \
'QMAKE_CXXFLAGS -= -DTW_BUILD_ID=personal -DTW_HELPPATH=\\\"/usr/local/share/texworks-help\\\" -DTW_PLUGINPATH=\\\"/usr/local/lib/texworks\\\"' \
'QMAKE_CXXFLAGS += -DTW_BUILD_ID=Debian -DTW_HELPPATH=\\\"/usr/share/texworks-help\\\" -DTW_PLUGINPATH=\\\"/usr/lib/texworks\\\"' \
'target.path = /usr/lib/texworks' \
&& $(MAKE)
qmake-qt4 \
-after \
'QMAKE_CXXFLAGS -= -DTW_BUILD_ID=personal -DTW_HELPPATH=\\\"/usr/local/share/texworks-help\\\" -DTW_PLUGINPATH=\\\"/usr/local/lib/texworks\\\"' \
'QMAKE_CXXFLAGS += -DTW_BUILD_ID=Debian -DTW_HELPPATH=\\\"/usr/share/texworks-help\\\" -DTW_PLUGINPATH=\\\"/usr/lib/texworks\\\"' \ \
&& $(MAKE)
#docbook-to-man debian/texworks.sgml > texworks.1
touch $@
......@@ -65,10 +75,7 @@ clean:
if [ -d $(PLIPYT)/rcc ]; then rmdir $(PLIPYT)/rcc; fi
if [ -d $(PLIPYT)/ui ]; then rmdir $(PLIPYT)/ui; fi
patch -NRp1 < ./debian/patch-luatex || true
# patch -NRp1 < ./debian/patch-print || true
patch -NRp1 < ./debian/patch-plugin || true
# rm -f document-print.png res/tango/document-print.png
rm -f $(PLIDIR)/ $(PLIDIR)/Makefile
rm -f $(PLIPYT)/ $(PLIPYT)/Makefile
......@@ -81,16 +88,21 @@ install: build
dh_installdirs -A
# Add here commands to install the package into debian/texworks.
# $(MAKE) DESTDIR=$(CURDIR)/debian/texworks install
install -m 755 -p ./texworks $(CURDIR)/debian/texworks/usr/bin
cp debian/texworks.xpm $(USDIR)/pixmaps/
cp debian/texworks.desktop $(USDIR)/applications/
qmake-qt4 \
-after \
'QMAKE_CXXFLAGS -= -DTW_BUILD_ID=personal -DTW_HELPPATH=\\\"/usr/local/share/texworks-help\\\" -DTW_PLUGINPATH=\\\"/usr/local/lib/texworks\\\"' \
'QMAKE_CXXFLAGS += -DTW_BUILD_ID=Debian -DTW_HELPPATH=\\\"/usr/share/texworks-help\\\" -DTW_PLUGINPATH=\\\"/usr/lib/texworks\\\"' \ \
&& $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/texworks install
# unnecessary file(lintial warning)
rm -f $(CURDIR)/debian/texworks/usr/share/doc/texworks/COPYING*
install -m 755 -p "$(PLIDIR)/" \
install -m 755 -p "$(PLIPYT)/" \
# Install the manual
cp -r manual $(CURDIR)/debian/texworks-help-en/usr/share/texworks-help/TeXworks-manual
# cp -r manual $(CURDIR)/debian/texworks-help-en/usr/share/texworks-help/TeXworks-manual
# Build architecture-independent files here.
binary-indep: install
......@@ -114,7 +126,7 @@ binary-arch: install
# dh_installinit
# dh_installcron
# dh_installinfo
dh_installman debian/texworks.1
.B texworks
\- a simple TeX front-end program
.B texworks
.B TeXworks
is an environment for authoring TeX (LaTeX, ConTeXt, etc) documents, with a Unicode-based, TeX-aware editor, integrated PDF viewer, and a clean, simple interface accessible to casual and non-technical users.
It is inspired by Dick Koch's award-winning TeXShop program for Mac OS X, which has made quality typesetting through TeX accessible to a wider community of users, without a technical or intimidating face. The goal of
.B TeXworks
is to deliver a similarly integrated, easy-to-use environment for users on other platforms, especially GNU/Linux and Windows.
Overrides the location of the preferences file.
Overrides the location of the additional configuration and library files.
.I ~/.config/TUG/TeXworks.conf
Text file to store the preferences.
.I ~/.TeXworks/*
Additional configuration and library files (e.g. for auto completion, templates, etc.).
.I /usr/lib/TeXworks/texworks-setup.ini
Setup file to override the location of the files mentioned above (e.g. for enabling portable operation).
.B TeXworks
homepage : \%
.B TeXworks
If you find a bug, please report it at \%
Jonathan Kew and others
[Desktop Entry]
Comment=TeX Editor
?package(texworks):needs="X11" section="Applications/Editors"\
title="texworks" command="/usr/bin/texworks"\
/* XPM */
static char *texworks_s[] = {
/* columns rows colors chars-per-pixel */
"32 32 119 2",
" c #03810381759E",
". c #09A009A073A7",
"X c #047804787B5E",
"o c #093009307CBA",
"O c #1031103173C2",
"+ c #1DF21DF27683",
"@ c #1537153779FA",
"# c #1B371B377BC8",
"$ c #2F8D2F8D6299",
"% c #2326232671E6",
"& c #2D4A2D4A7475",
"* c #240724077C54",
"= c #2DA62DA67CFC",
"- c #339833987250",
"; c #3F553F5576D8",
": c #318B318B7EBF",
"> c #3D2C3D2C7AF4",
", c #475047504763",
"< c #4B6E4B6E4B9A",
"1 c #535F535F539E",
"2 c #5794579458C0",
"3 c #5C6F5C6F5C82",
"4 c #41D941D96C77",
"5 c #523352336473",
"6 c #5EDA5EDA60AA",
"7 c #5D465D466CBA",
"8 c #410C410C73F9",
"9 c #48584858706E",
"0 c #417F417F7E26",
"q c #4E604E607C41",
"w c #54FC54FC7195",
"e c #5BC65BC673CD",
"r c #5C125C127855",
"t c #6417641764A5",
"y c #659965996A3B",
"u c #6B136B136C1D",
"i c #61D961D974FC",
"p c #6D366D367265",
"a c #72FB72FB7330",
"s c #7843784377EB",
"d c #76187618786E",
"f c #7B747B747B95",
"g c #0C9B0C9B845B",
"h c #147E147E8716",
"j c #1A821A8280C9",
"k c #174D174D8BD6",
"l c #1D141D148FD2",
"z c #248D248D85E6",
"x c #295E295E85E5",
"c c #271527158882",
"v c #29DA29DA8DB9",
"b c #32B832B8813A",
"n c #3E3A3E3A96F4",
"m c #3BBB3BBB9A7B",
"M c #46994699856A",
"N c #45ED45ED89E0",
"B c #4D274D278DE3",
"V c #5D555D558550",
"C c #422F422F9546",
"Z c #550B550B910E",
"A c #5B755B75938E",
"S c #596A596A9DD4",
"D c #6D606D6084C0",
"F c #6DA16DA1894F",
"G c #77CB77CB8475",
"H c #7DC07DC0808F",
"J c #62FA62FA9B12",
"K c #756375639643",
"L c #71D871D89E88",
"P c #59015901A7E3",
"I c #58D558D5B6DE",
"U c #60D360D3AE7B",
"Y c #7A4F7A4FA63A",
"T c #721E721EAA84",
"R c #6F856F85B294",
"E c #7F5B7F5BB577",
"W c #83EA83EA8446",
"Q c #8B8A8B8A8C17",
"! c #815281529D4D",
"~ c #8F348F349BFF",
"^ c #93979397945F",
"/ c #94249424997F",
"( c #9CBA9CBA9DFA",
") c #849F849FA1C0",
"_ c #900C900CA35F",
"` c #86408640ABFE",
"' c #8D268D26AFB4",
"] c #92CF92CFA50D",
"[ c #9E799E79A3C8",
"{ c #83ED83EDB734",
"} c #9E049E04BF16",
"| c #A457A457A48B",
" . c #A42FA42FAC3E",
".. c #AB9FAB9FAC36",
"X. c #AB92AB92B040",
"o. c #A3C4A3C4BC1B",
"+. c #B451B451B4EA",
"@. c #B99CB99CB7BE",
"#. c #B1DBB1DBBA6F",
"$. c #BC90BC90BC65",
"%. c #C0C8C0C8BFCF",
"&. c #8B468B46D9DD",
"*. c #A3DAA3DACB70",
"=. c #BDA5BDA5C557",
"-. c #BD3DBD3DCDAB",
";. c #C2F3C2F3C311",
":. c #C704C704CA09",
">. c #CC0ECC0ECC89",
",. c #CCFBCCFBD262",
"<. c #D414D414D41A",
"1. c #D8B1D8B1D7E2",
"2. c #DC41DC41DC09",
"3. c #D7D0D7D0E704",
"4. c #E4A0E4A0E4AE",
"5. c #EB66EB66EB5E",
"6. c #F33EF33EF35C",
"7. c #FE2DFE2DFE21",
"8. c None",
/* pixels */
">.=.O.' Y O.>.",
"<.<.=.o.` J N = # A #.",
",.-.} T C x ; e i 7 4 & J #.",
"8.<.<.1.,.-.*.E J N j X o 4 a s W W w 8 ~ ;.",
"8.>.>.=.R I P V i y - o X + D ( ;.;.Q u d |",
"8.>.:.[ n m e a a f r j g o B #.>.2.$.Q p ^ @.",
"8.:.:.[ S U y f | $./ M k X # ) $.>.>.@.[ ..$.:.",
"8.8.>.+.{ &.G ..4.6.$.D v g N X.;.;.;.$.$.$.$.:.",
"8.8.:.$._ ` H +.5.7.4.( Z l X @ K @.$.;.$.$.$.$.$.:.",
"8.8.>.;.Q u s ..4.7.6.$.F z o = ] @.$.$.$.$.$.$.;.",
"8.8.8.:.| s W >. 0 h . A +.%.$.+.+.$.$.$.$.",
"8.8.8.:.;.+.>. c * ] .L Z ! +.$.$.$.$.",
"8.8.8.>.^ > b b % $ e ( +.$.$.$.>.8.8.8.",
"8.8.8.>. . O & 4 5 6 t W ..+.$.@.$.8.8.8.",
"<.*.J * % 8 e p a u y t a | +.$.@.@.$.8.8.",
">. : - 9 p d d a u t t y W ..$.$.@.@.@.;.8.",
">.1.1.2.>.| 7 5 y a a a u y y a f ( +.$.$.$.$.@.@.+.8.",
"<.<.<.>...s u u u y y u d ^ ..+.$.$.$.$.$.@...^ ^ 8.",
";.>.>.>.:.+.Q u t t p Q ( +.$.$.$.$.$.$.@.| Q t t 8.8.",
"$.:.>.>.:.@...^ H Q | $.;.;.;.$.$.$.+.| Q t < 1 t 8.8.",
";.;.;.;.;.;.$.@.$.;.;.;.;.;.$.+./ s t < < 3",
"$.;.;.;.;.;.;.;.;.;.;.;.$.+./ a 1 < < 2 a",
";.;.;.;.;.;.;.;.;.@.| Q u 1 , , 3 a",
"$.;.;.;.;.;.;.@.| f t < < 1 t a",
"$.$.$.;.$.+.| f 3 < , 2 y",
"$.$...Q a 3 < , 1 p",
" t < , , 2 u",
" 1 , < y u",
" t H",
# Example watch control file for uscan
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
# See uscan(1) for format
# Compulsory line, this is a version 3 file
# Uncomment to examine a Webpage
# <Webpage URL> <string match>
# texworks-(.*)\.tar\.gz
# Uncomment to examine a Webserver directory
# Uncommment to examine a FTP server
#*)\.tar\.gz debian uupdate
# Uncomment to find new files on sourceforge, for devscripts >= 2.9
# Uncomment to find new files on GooglePages
# texworks-(.*)\.tar\.gz
......@@ -8,6 +8,11 @@ BINPATHS=":"
if [ -x /usr/share/libtool/config.guess ]; then
ARCH=`echo $PLATFORM | sed 's/-.*//;s/i.86/i386/'`
# At least on Debian, Ubuntu, Gentoo and LFS, config.guess seems to be in a
# subdirectory
elif [ -x /usr/share/libtool/config/config.guess ]; then
ARCH=`echo $PLATFORM | sed 's/-.*//;s/i.86/i386/'`
PLATFORM=`uname -s | tr A-Z a-z`
ARCH=`uname -m | tr A-Z a-z | sed 's/i.86/i386/'`
......@@ -63,10 +68,25 @@ case $PLATFORM in
*) OS=`echo $PLATFORM | sed 's/.*-//'`
appendPath "/usr/local/texlive/2011/bin/$ARCH-$OS"
appendPath "/usr/local/texlive/2010/bin/$ARCH-$OS"
appendPath "/usr/local/texlive/2009/bin/$ARCH-$OS"
appendPath "/usr/local/texlive/2008/bin/$ARCH-$OS"
appendPath "/usr/local/texlive/2007/bin/$ARCH-$OS"