On 6/14/2013 4:14 PM, Mojca Miklavec wrote:
On Fri, Jun 14, 2013 at 9:13 PM, Jacob Peck wrote:
On 6/14/2013 3:05 PM, Mojca Miklavec wrote:
Now that Jacob mentioned it: I didn't think of the fact that one might not necessarily need special cygwin binaries to run ConTeXt in cygwin. If a simple modification in first-setup.sh and setuptex can do the job, feel free to suggest the change (platform detection).
My changes were simple - I used the setuptex file that came with standalone, and tweaked it ever so slightly.
https://gist.github.com/gatesphere/0afaf5c2c647430ff653 So basically all you did was replacing platform detection with platform="mswin" and commented out three lines of code that notify about the change? (Did you just find those lines annoying or did they actually fail to work?) I just found them annoying - precisely because they worked :p Just curious: what does uname -s uname -m return on cygwin or what is the best way to detect windows in "shell"? (I believe that should be easy enough.) $ uname -s; uname -m; uname -o CYGWIN_NT-5.1 i686 Cygwin
You could test if `uname -s` starts with "CYGWIN", or if `uname -o` equals "Cygwin"... another way is to check $OSTYPE: $ echo $OSTYPE cygwin
Save that as .setuptex in ~ (home directory) then add the line
source /home/PeckJ/.setuptex /cygdrive/c/context/tex to .bashrc, and you should be good to go. In that case I would use export PATH=/cygdrive/c/context/tex/texm-mswin/bin:$PATH instead, but of course it's your choice. Is that all the script does? I've never read it completely, just tweaked it until it worked.
Ah well, my setup works just fine :) -->Jake
Mojca ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________