From: 		LAURENS Jérôme <depmath21@gmail.com>
Subject: 	TeXDist 
Date: 		June 20, 2011 5:42:27 PM PDT
To: 		Richard Koch <koch@math.uoregon.edu>



1) svn checkout --revision 150 https://mactextoolbox.svn.sourceforge.net/svnroot/mactextoolbox/branches/texdist/2011/ texdist-2011
2) cd texdist-2011
3) ./BuildAll-sudo.command
4) Open DerivedData/TeXDist/Build/Products/TeXDistPrefPane-2011.prefPane




Hi,

It took me more time because I added some more stuff to the preference pane.
The idea is that the TeXDist pref pane contains all the logic for the texdist structure,
so it should perform every task...

The actual svn version reads 128. This is frozen, except for bug fix, comments and explanations eventually.

Basically, the previous problems are fixed.

When you build with ./BuildAll-sudo.command, you will find at DerivedData/TeXDistTool a soft link to
DerivedData/TeXDist/Build/Products/TeXDistPrefPane.Intel.prefPane/Contents/MacOS/TeXDistTool

You can run this tool to help you manage your installed tex distributions.
Here are the interesting stuff

   %/SOMEWHERE/TeXDistTool --reset
This will remove the /usr/texbin and .DefaultTeX soft links.

...%TeXDistTool --list-distributions
This will list all the distributions available.

...%TeXDistTool --list-active-distribution
This will list only the active distribution.

   %TeXDistTool --activate --distribution texlive-2011 [--architecture x86_64]
This will make the distribution with the given name the active one and the given architecture the active one.
If no architecture is given, the best choice that fits the machine is made.

These commands allow you to simulate the behaviour of the TeXDist preference pane, without installing it nor launching it.

Running these commands may require authentication. To avoid GUI panels and use this in a shell script, you can run as
sudo TeXDistTool blah blah --no-texdist-credentials

For example, at installation time, once you have made a copy of the TeXDistPrefPane.prefPane in /Library/...
you can make a soft link

ln -s /Library/PreferencePanes/TeXDistPrefPane.prefPane/Contents/MacOS/TeXDistTool temp_dir/TeXDistTool

then reset everything

temp_dir/TeXDistTool --reset --no-texdist-credentials

then activate the installed distribution creating /usr/texbin and .DefaultTex with expected values

temp_dir/TeXDistTool --activate --distribution texlive-2011 --no-texdist-credentials

That is all.

Jerome



