runPythonEmacs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. #! /bin/sh
  2. #debug=1
  3. # Under Windows/Cygwin, we have to de-cygwinify the semicolon
  4. # separated PYTHONPATH
  5. # First, initialize the new path
  6. NEWPYTHONPATH=
  7. # To iterate, temporarily change the semicolons into spaces
  8. for path in `echo $PYTHONPATH | sed 'y/;/ /'`; do
  9. # Then for each entry run it through the cygwin filter
  10. NEWPYTHONPATH=$NEWPYTHONPATH\;`cygpath -w $path`
  11. done
  12. # Export the new PYTHONPATH
  13. PYTHONPATH=$NEWPYTHONPATH
  14. export PYTHONPATH
  15. # Lets also de-cygwinify the Project variables (so you can use file name
  16. # completion) This is hardcoded for the most popular trees
  17. if [ "$DTOOL" ]; then
  18. if [ "$debug" ]; then echo "DTOOL $DTOOL"; fi
  19. DTOOL=`cygpath -w $DTOOL`
  20. export DTOOL
  21. fi
  22. if [ "$PANDA" ]; then
  23. if [ "$debug" ]; then echo "PANDA $PANDA"; fi
  24. PANDA=`cygpath -w $PANDA`
  25. export PANDA
  26. fi
  27. if [ "$DIRECT" ]; then
  28. if [ "$debug" ]; then echo "DIRECT $DIRECT"; fi
  29. DIRECT=`cygpath -w $DIRECT`
  30. export DIRECT
  31. fi
  32. if [ "$TOONTOWN" ]; then
  33. if [ "$debug" ]; then echo "TOONTOWN $TOONTOWN"; fi
  34. TOONTOWN=`cygpath -w $TOONTOWN`
  35. export TOONTOWN
  36. fi
  37. if [ "$TOONTAG" ]; then
  38. if [ "$debug" ]; then echo "TOONTAG $TOONTAG"; fi
  39. TOONTAG=`cygpath -w $TOONTAG`
  40. export TOONTAG
  41. fi
  42. if [ "$BARTOP" ]; then
  43. if [ "$debug" ]; then echo "BARTOP $BARTOP"; fi
  44. BARTOP=`cygpath -w $BARTOP`
  45. export BARTOP
  46. fi
  47. if [ "$TTRADER" ]; then
  48. if [ "$debug" ]; then echo "TTRADER $TTRADER"; fi
  49. TTRADER=`cygpath -w $TTRADER`
  50. export TTRADER
  51. fi
  52. if [ "$VRIDE" ]; then
  53. if [ "$debug" ]; then echo "VRIDE $VRIDE"; fi
  54. VRIDE=`cygpath -w $VRIDE`
  55. export VRIDE
  56. fi
  57. if [ "$FOURD" ]; then
  58. if [ "$debug" ]; then echo "FOURD $FOURD"; fi
  59. FOURD=`cygpath -w $FOURD`
  60. export FOURD
  61. fi
  62. if [ "$MRM" ]; then
  63. if [ "$debug" ]; then echo "MRM $MRM"; fi
  64. MRM=`cygpath -w $MRM`
  65. export MRM
  66. fi
  67. if [ "$PARALLAX" ]; then
  68. if [ "$debug" ]; then echo "PARALLAX $PARALLAX"; fi
  69. PARALLAX=`cygpath -w $PARALLAX`
  70. export PARALLAX
  71. fi
  72. if [ "$WINTOOLS" ]; then
  73. if [ "$debug" ]; then echo "WINTOOLS $WINTOOLS"; fi
  74. WINTOOLS=`cygpath -w $WINTOOLS`
  75. export WINTOOLS
  76. fi
  77. if [ "$PANDATOOL" ]; then
  78. if [ "$debug" ]; then echo "PANDATOOL $PANDATOOL"; fi
  79. PANDATOOL=`cygpath -w $PANDATOOL`
  80. export PANDATOOL
  81. fi
  82. if [ "$PANDAAPP" ]; then
  83. if [ "$debug" ]; then echo "PANDAAPP $PANDAAPP"; fi
  84. PANDAAPP=`cygpath -w $PANDAAPP`
  85. export PANDAAPP
  86. fi
  87. # Panda will now tolerate the colon in the de-cygpath version of the model trees
  88. if [ "$DMODELS" ]; then
  89. if [ "$debug" ]; then echo "DMODELS $DMODELS"; fi
  90. DMODELS=`cygpath -w $DMODELS`
  91. export DMODELS
  92. fi
  93. if [ "$TTMODELS" ]; then
  94. if [ "$debug" ]; then echo "TTMODELS $TTMODELS"; fi
  95. TTMODELS=`cygpath -w $TTMODELS`
  96. export TTMODELS
  97. fi
  98. if [ "$BARMODELS" ]; then
  99. if [ "$debug" ]; then echo "BARMODELS $BARMODELS"; fi
  100. BARMODELS=`cygpath -w $BARMODELS`
  101. export BARMODELS
  102. fi
  103. # Export the proper home environment variable
  104. HOME=`cygpath -w $HOME`
  105. export HOME
  106. # Now start up emacs
  107. exec runemacs $@