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
|
#! /bin/bash
# Adjusts the references to the reference to the super POM in the parent module
# and the checkstyle configuration for each project module
# such that it points to static, tagged parent project information.
if [ $# != 2 ] ; then
echo "Usage: $(basename $0) <VERSION> <DIRECTORY>"
echo " VERSION - the numeric version number of the parent project that the given project should be locked to"
echo " DIRECTORY - path to the project"
exit 1;
fi
LOCATION=$0
LOCATION=${LOCATION%/*}
source $LOCATION/lock-version-common.sh
for module in `ls "$2"` ; do
if [ -d "$2/$module" ] ; then
if [ ${module##*-} = "parent" ] ; then
lock_pom $1 $2/$module
else
lock_checkstyle $1 $2/$module
fi
fi
done
|