1234567891011121314151617181920212223242526272829303132333435 |
- #!/bin/bash
- if [ -e testenv_config ]; then
- ret=0
- . testenv_config
- if [ -e "${SLITHEEN_FIREFOX_REPO}/mach" ]; then
- echo "SLITHEEN_FIREFOX_REPO appears OK"
- else
- echo "SLITHEEN_FIREFOX_REPO not set correctly: cannot find ${SLITHEEN_FIREFOX_REPO}/mach"
- ret=1
- fi
- if [ -e "${SLITHEEN_CODE_REPO}/relay_station/slitheen-proxy.c" ]; then
- echo "SLITHEEN_CODE_REPO appears OK"
- else
- echo "SLITHEEN_CODE_REPO not set correctly: cannot find ${SLITHEEN_CODE_REPO}/relay_station/slitheen-proxy.c"
- ret=1
- fi
- if [ "$ret" = "1" ]; then
- echo ""
- echo "Please edit the testenv_config file."
- fi
- exit $ret
- fi
- cat <<EOF >testenv_config
- SLITHEEN_FIREFOX_REPO=/somewhere/firefox
- SLITHEEN_CODE_REPO=/somewhere/slitheen/code
- EOF
- echo "Please edit the paths in the testenv_config file."
- exit 1
|