mktestenvconfig 1006 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/bash
  2. if [ -e testenv_config ]; then
  3. ret=0
  4. . testenv_config
  5. if [ -e "${SLITHEEN_FIREFOX_REPO}/mach" ]; then
  6. echo "SLITHEEN_FIREFOX_REPO appears OK"
  7. else
  8. echo "SLITHEEN_FIREFOX_REPO not set correctly: cannot find ${SLITHEEN_FIREFOX_REPO}/mach"
  9. ret=1
  10. fi
  11. if [ -e "${SLITHEEN_CODE_REPO}/relay_station/slitheen-proxy.c" ]; then
  12. echo "SLITHEEN_CODE_REPO appears OK"
  13. else
  14. echo "SLITHEEN_CODE_REPO not set correctly: cannot find ${SLITHEEN_CODE_REPO}/relay_station/slitheen-proxy.c"
  15. ret=1
  16. fi
  17. if [ "$ret" = "1" ]; then
  18. echo ""
  19. echo "Please edit the testenv_config file."
  20. fi
  21. exit $ret
  22. fi
  23. cat <<EOF >testenv_config
  24. ## The full path to your checked-out copy of the firefox repo
  25. SLITHEEN_FIREFOX_REPO=/somewhere/firefox
  26. ## The full path to your checked-out copy of the slitheen code repo
  27. SLITHEEN_CODE_REPO=/somewhere/slitheen/code
  28. EOF
  29. echo "Please edit the paths in the testenv_config file."
  30. exit 1