forked from cohosh/snowbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmktestenvconfig
More file actions
executable file
·34 lines (29 loc) · 868 Bytes
/
mktestenvconfig
File metadata and controls
executable file
·34 lines (29 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
if [ -e testenv_config ]; then
ret=0
. testenv_config
if [ -e "${SNOWFLAKE_REPO}/broker" ]; then
echo "SNOWFLAKE_REPO appears OK"
else
echo "SNOWFLAKE_REPO not set correctly: cannot find ${SNOWFLAKE_REPO}/broker"
ret=1
fi
if [ -e "${SNOWFLAKEWEB_REPO}/webext" ]; then
echo "SNOWFLAKEWEB_REPO appears OK"
else
echo "SNOWFLAKEWEB_REPO not set correctly: cannot find ${SNOWFLAKEWEB_REPO}/webex"
ret=1
fi
if [ "$ret" = "1" ]; then
echo ""
echo "Please edit the testenv_config file."
fi
exit $ret
fi
cat <<EOF >testenv_config
## The full path to your checked-out copy of the snowflake repo
SNOWFLAKE_REPO=/somewhere/snowflake.git
SNOWFLAKEWEB_REPO=/somewhere/snowflake-webext.git
EOF
echo "Please edit the paths in the testenv_config file."
exit 1