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'`
12 REV=`svnversion -c ${1} | cut -d: -f2`
14 INTEGRATED=`LANG=C svn pg automerge-propname ${1}`
15 if [ -z "${INTEGRATED}" ] ; then
16 INTEGRATED=svnmerge-integrated
19 BASE=`LANG=C svn pg ${INTEGRATED} ${1} | cut -d: -f1`
21 if [ "${PARTS}" = "trunk" ] ; then
22 echo SVN-trunk-r${REV}
26 for PART in $PARTS ; do
27 if [ ${TAG} != 0 ] ; then
28 if [ "${PART}" = "autotag_for_be" ] ; then
31 if [ "${PART}" = "autotag_for_sx00i" ] ; then
38 if [ ${BRANCH} != 0 ] ; then
39 if [ -z "${RESULT}" ] ; then
42 RESULT="${RESULT}-${PART}"
44 if [ ${FEATURE} != 0 ] ; then
45 RESULT="${RESULT}-${FEATURE_NAME}"
50 if [ ${TEAM} != 0 ] ; then
51 if [ -z "${RESULT}" ] ; then
54 RESULT="${RESULT}-${PART}"
59 if [ "${PART}" = "certified" ] ; then
65 if [ "${PART}" = "branches" ] ; then
71 if [ "${PART}" = "tags" ] ; then
76 if [ "${PART}" = "team" ] ; then
82 if [ ${TAG} != 0 ] ; then
85 echo SVN-${RESULT}-r${REV}${BASE:+-${BASE}}
88 echo "UNKNOWN__and_probably_unsupported"