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" ]
17 echo SVN-trunk-r
${REV}
25 if [ "${PART}" = "autotag_for_be" ] ; then
28 if [ "${PART}" = "autotag_for_sx00i" ] ; then
41 RESULT
="${RESULT}-${PART}"
52 RESULT
="${RESULT}-${PART}"
57 if [ "${PART}" = "branches" ]
64 if [ "${PART}" = "tags" ]
70 if [ "${PART}" = "team" ]
81 echo SVN-
${RESULT}-r${REV}${BASE:+-${BASE}}
83 elif [ -d .git
]; then
84 # FIXME: anything better? 'git describe' doesn't seem to help.