mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-14 17:01:02 +02:00
Adding ability to version extraneous stuff. Change-Id: I2e18dafd6d8705504ab01000d6707037415dfd0c (cherry picked from commit 251016df5db8f11a14c4856f9b381e85ae1e2631)
23 lines
668 B
Bash
Executable File
23 lines
668 B
Bash
Executable File
#!/bin/bash
|
|
# -----------------------------------------------------------------------------
|
|
# Validates that no pom versions contain SNAPSHOT.
|
|
# -----------------------------------------------------------------------------
|
|
|
|
[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
|
|
|
|
aux=$(mktemp)
|
|
trap "rm -f $aux 2>/dev/null" EXIT
|
|
|
|
cd $ONOS_ROOT
|
|
find . -type f | \
|
|
egrep -v -f $ONOS_ROOT/tools/build/onos-validate-change-version.excludes | \
|
|
xargs grep SNAPSHOT >$aux
|
|
|
|
# FIXME: deal properly with files with white-space in them
|
|
|
|
if [ -s $aux ]; then
|
|
echo "There are files containing SNAPSHOT references:"
|
|
cat $aux
|
|
exit 1
|
|
fi
|
|
exit 0 |