o grep for CYGWIN to recognize any cygwin environment

o extra echo to keep PandaModulesUnsqueezed.py rename from failing
This commit is contained in:
Joseph Lee 2003-10-09 00:55:19 +00:00
parent 9a78635250
commit c5975d23f7
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,7 @@ pyDir=$DIRECT/lib/py
extDir=$DIRECT/src/extensions
pSqueezer=$DIRECT/src/showbase/pandaSqueezer.py
if [ $(uname) = "CYGWIN_NT-5.0" -o $(uname) = "CYGWIN_NT-5.1" ]; then
if [ $(uname | grep CYGWIN) ]; then
install_dir="$(cygpath -aw $install_dir)"
pyDir="$(cygpath -w $pyDir)"
extDir="$(cygpath -w $extDir)"
@ -97,6 +97,7 @@ else
echo RENAMING PandaModulesUnsqueezed.py to PandaModules.py
cd $pyDir || exit
rm -f PandaModules.py* || exit
echo # junk line needed to keep mv from failing
mv PandaModulesUnsqueezed.py PandaModules.py || exit
fi