#!/bin/bash # Usage: get-svnversion {project-names} # Gets the largest and most complete subversion revision across a set of projects # This must be run from the project parent projs=$* if [ "${projs}" = "" ]; then echo "Usage: get-svnversion.sh {project-names}" exit 1 fi for i in $projs; do svnversion $i done | sort | awk ' BEGIN { v=""; } NR == 1 { v = "" + $1; } { lr = $1; next;} END { v = v ":" lr; printf "%s\n", v; } '