3 if [ -f ${1}/.version ]; then
6 PARTS=`LANG=C svn info ${1} | ${GREP} URL | ${AWK} '{print $2;}' | sed -e 's:^.*/svn/asterisk/::' | sed -e 's:/: :g'`
11 REV=`svnversion -c ${1} | cut -d: -f2`
13 BASE=`LANG=C svn pg svnmerge-integrated ${1} | cut -d: -f1`
15 if [ "${PARTS}" = "trunk" ] ; then
16 echo SVN-trunk-r${REV}
20 for PART in $PARTS ; do
21 if [ ${TAG} != 0 ] ; then
26 if [ ${BRANCH} != 0 ] ; then
27 if [ -z ${RESULT} ] ; then
30 RESULT="${RESULT}-${PART}"
35 if [ ${TEAM} != 0 ] ; then
36 if [ -z ${RESULT} ] ; then
39 RESULT="${RESULT}-${PART}"
44 if [ "${PART}" = "branches" ] ; then
50 if [ "${PART}" = "tags" ] ; then
55 if [ "${PART}" = "team" ] ; then
61 if [ ${TAG} != 0 ] ; then
64 echo SVN-${RESULT}-r${REV}${BASE:+-${BASE}}