makepanda.bat 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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. if not exist makepanda\makepanda.py goto :missing1
  8. if %PROCESSOR_ARCHITECTURE% == AMD64 goto :AMD64
  9. if not exist thirdparty\win-python\python.exe goto :missing2
  10. thirdparty\win-python\python.exe makepanda\makepanda.py %*
  11. if errorlevel 1 if x%1 == x--slavebuild exit 1
  12. goto done
  13. :AMD64
  14. if not exist thirdparty\win-python-x64\python.exe goto :missing2
  15. thirdparty\win-python-x64\python.exe makepanda\makepanda.py %*
  16. if errorlevel 1 if x%1 == x--slavebuild exit 1
  17. goto done
  18. :missing1
  19. echo You need to change directory to the root of the panda source tree
  20. echo before invoking makepanda. For further install instructions, read
  21. echo the installation instructions in the file doc/INSTALL-MK.
  22. goto done
  23. :missing2
  24. echo You seem to be missing the 'thirdparty' directory. You probably checked
  25. echo the source code out from sourceforge. The sourceforge repository is
  26. echo missing the 'thirdparty' directory. You will need to supplement the
  27. echo code by downloading the 'thirdparty' directory from panda3d.etc.cmu.edu
  28. goto done
  29. :done