Thomas Vachuska

Enhancing onos-release to check for no SNAPSHOTs.

Change-Id: I6fda5cb6b80a1418f9d7e76f8b7d38a4a037a4c4
...@@ -5,12 +5,16 @@ ...@@ -5,12 +5,16 @@
5 5
6 [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 6 [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7 7
8 -aux=/tmp/pom-$$.log 8 +aux=$(mktemp)
9 trap "rm -f $aux 2>/dev/null" EXIT 9 trap "rm -f $aux 2>/dev/null" EXIT
10 10
11 +cd $ONOS_ROOT
11 grep -r SNAPSHOT . | \ 12 grep -r SNAPSHOT . | \
12 - grep -v -f $(dirname $0)/onos-validate-change-version.excludes > $aux 13 + egrep -v -f $ONOS_ROOT/tools/build/onos-validate-change-version.excludes >$aux
13 14
14 -[ ! -s $aux ] && echo "There are files containing SNAPSHOT references:" && \ 15 +if [ -s $aux ]; then
15 - cat $aux && exit 1 16 + echo "There are files containing SNAPSHOT references:"
17 + cat $aux
18 + exit 1
19 +fi
16 exit 0 20 exit 0
...\ No newline at end of file ...\ No newline at end of file
......
1 \./build.log 1 \./build.log
2 \./.git 2 \./.git
3 \./target/ 3 \./target/
4 +\./tools/build/onos-validate-change-version
4 \./tools/build/onos-change-version 5 \./tools/build/onos-change-version
5 \./tools/build/onos-release 6 \./tools/build/onos-release
6 \./tools/build/onos-snapshot 7 \./tools/build/onos-snapshot
7 -
8 \./tools/package/archetypes/.*/archetype\.properties 8 \./tools/package/archetypes/.*/archetype\.properties
9 \./tools/package/maven-plugin/pom.xml 9 \./tools/package/maven-plugin/pom.xml
10 \./tools/build/conf/pom.xml 10 \./tools/build/conf/pom.xml
11 -
12 \./web/gui/src/main/java/org/onosproject/ui/impl/TopologyViewMessageHandlerBase.java 11 \./web/gui/src/main/java/org/onosproject/ui/impl/TopologyViewMessageHandlerBase.java
13 \./core/api/src/test/java/org/onosproject/VersionTest.java 12 \./core/api/src/test/java/org/onosproject/VersionTest.java
14 -
15 \./tools/package/yangtools/pom.xml 13 \./tools/package/yangtools/pom.xml
16 \./tools/package/yangtools/src/main/resources/pom-template.xml 14 \./tools/package/yangtools/src/main/resources/pom-template.xml
17 \./utils/yangutils/pom.xml 15 \./utils/yangutils/pom.xml
18 -
19 \./apps/openstackrouting/pom.xml 16 \./apps/openstackrouting/pom.xml
20 \./apps/openstackswitching/pom.xml 17 \./apps/openstackswitching/pom.xml
21 \./apps/vrouter/pom.xml 18 \./apps/vrouter/pom.xml
22 -
23 \./protocols/ospf/ 19 \./protocols/ospf/
24 \./protocols/snmp/ 20 \./protocols/snmp/
21 +\./providers/snmp/
...\ No newline at end of file ...\ No newline at end of file
......