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 INTEGRATED=`LANG=C svn pg automerge-propname ${1}`
14 if [ -z "${INTEGRATED}" ] ; then
15 INTEGRATED=svnmerge-integrated
18 BASE=`LANG=C svn pg ${INTEGRATED} ${1} | cut -d: -f1`
20 if [ "${PARTS}" = "trunk" ] ; then
21 echo SVN-trunk-r${REV}
25 for PART in $PARTS ; do
26 if [ ${TAG} != 0 ] ; then
27 if [ "${PART}" = "autotag_for_be" ] ; then
30 if [ "${PART}" = "autotag_for_sx00i" ] ; then
37 if [ ${BRANCH} != 0 ] ; then
38 if [ -z "${RESULT}" ] ; then
41 RESULT="${RESULT}-${PART}"
46 if [ ${TEAM} != 0 ] ; then
47 if [ -z "${RESULT}" ] ; then
50 RESULT="${RESULT}-${PART}"
55 if [ "${PART}" = "branches" ] ; then
61 if [ "${PART}" = "tags" ] ; then
66 if [ "${PART}" = "team" ] ; then
72 if [ ${TAG} != 0 ] ; then
75 echo SVN-${RESULT}-r${REV}${BASE:+-${BASE}}
78 echo "UNKNOWN__and_probably_unsupported"