makepanda.bat 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. @echo off
  2. REM
  3. REM Verify that we can find the 'makepanda' python script
  4. REM and the python interpreter. If we can find both, then
  5. REM run 'makepanda'.
  6. REM
  7. set thirdparty=thirdparty
  8. if defined MAKEPANDA_THIRDPARTY set thirdparty=%MAKEPANDA_THIRDPARTY%
  9. if not exist makepanda\makepanda.py goto :missing1
  10. if not exist %thirdparty%\win-python\python.exe goto :missing2
  11. %thirdparty%\win-python\python.exe makepanda\makepanda.py %*
  12. if errorlevel 1 if x%1 == x--slavebuild exit 1
  13. goto done
  14. :missing1
  15. echo You need to change directory to the root of the panda source tree
  16. echo before invoking makepanda. For further install instructions, read
  17. echo the installation instructions in the file doc/INSTALL-MK.
  18. goto done
  19. :missing2
  20. echo You seem to be missing the 'thirdparty' directory. You probably checked
  21. echo the source code out from sourceforge. The sourceforge repository is
  22. echo missing the 'thirdparty' directory. You will need to supplement the
  23. echo code by downloading the 'thirdparty' directory from www.panda3d.org
  24. goto done
  25. :done