Committed by
Gerrit Code Review
Emit warning when buck artifact is the latest
Change-Id: If01b47f2aaebf5cf2cf3977ad05e1453c4a2ef57
Showing
1 changed file
with
6 additions
and
2 deletions
... | @@ -4,13 +4,17 @@ | ... | @@ -4,13 +4,17 @@ |
4 | # karaf using the supplied arguments. | 4 | # karaf using the supplied arguments. |
5 | # ----------------------------------------------------------------------------- | 5 | # ----------------------------------------------------------------------------- |
6 | 6 | ||
7 | +. $ONOS_ROOT/tools/build/envDefaults | ||
8 | +if [ -L $ONOS_TAR ]; then | ||
9 | + echo "WARN: This script does not support deploying buck artifacts" | ||
10 | +fi | ||
11 | + | ||
7 | # FIXME: temporarily fix 500 error in GUI, need to be improved with a better way | 12 | # FIXME: temporarily fix 500 error in GUI, need to be improved with a better way |
8 | if echo $* | egrep "\bclean\b"; then | 13 | if echo $* | egrep "\bclean\b"; then |
9 | - . $ONOS_ROOT/tools/build/envDefaults | ||
10 | export KARAF_ROOT=${KARAF_ROOT:-~/Applications/apache-karaf-$KARAF_VERSION} | 14 | export KARAF_ROOT=${KARAF_ROOT:-~/Applications/apache-karaf-$KARAF_VERSION} |
11 | export STAGE=$(dirname $KARAF_ROOT) | 15 | export STAGE=$(dirname $KARAF_ROOT) |
12 | echo "Removing data directories..." | 16 | echo "Removing data directories..." |
13 | [ -d $KARAF_ROOT ] && rm -fr $STAGE/data | 17 | [ -d $KARAF_ROOT ] && rm -fr $STAGE/data |
14 | fi | 18 | fi |
15 | 19 | ||
16 | -onos-setup-karaf && karaf "$@" | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
20 | +onos-setup-karaf && karaf "$@" | ... | ... |
-
Please register or login to post a comment