[svn-commits] pabelanger: branch pabelanger/non-root r669 - /asterisk/team/pabelanger/non-r...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jul 30 21:05:56 CDT 2010


Author: pabelanger
Date: Fri Jul 30 21:05:53 2010
New Revision: 669

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=669
Log:
Import make_version

Added:
    asterisk/team/pabelanger/non-root/build_tools/
    asterisk/team/pabelanger/non-root/build_tools/make_version   (with props)

Added: asterisk/team/pabelanger/non-root/build_tools/make_version
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/pabelanger/non-root/build_tools/make_version?view=auto&rev=669
==============================================================================
--- asterisk/team/pabelanger/non-root/build_tools/make_version (added)
+++ asterisk/team/pabelanger/non-root/build_tools/make_version Fri Jul 30 21:05:53 2010
@@ -1,0 +1,79 @@
+#!/bin/sh
+
+if [ -f ${1}/.version ]; then
+    cat ${1}/.version
+elif [ -d .svn ]; then
+    PARTS=`LANG=C svn info ${1} | ${GREP} URL | ${AWK} '{print $2;}' | sed -e 's:^.*/svn/testsuite/asterisk/::' | sed -e 's:/: :g'`
+    BRANCH=0
+    TEAM=0
+    TAG=0
+
+    REV=`svnversion -c ${1} | cut -d: -f2`
+
+    INTEGRATED=`LANG=C svn pg automerge-propname ${1}`
+    if [ -z "${INTEGRATED}" ] ; then
+        INTEGRATED=svnmerge-integrated
+    fi
+
+    BASE=`LANG=C svn pg ${INTEGRATED} ${1} | cut -d: -f1`
+
+    if [ "${PARTS}" = "trunk" ] ; then
+        echo SVN-trunk-r${REV}
+        exit 0
+    fi
+
+    for PART in $PARTS ; do
+        if [ ${TAG} != 0 ] ; then
+            if [ "${PART}" = "autotag_for_be" ] ; then
+                continue
+            fi
+            if [ "${PART}" = "autotag_for_sx00i" ] ; then
+                continue
+            fi
+            RESULT="${PART}"
+            break
+        fi
+
+        if [ ${BRANCH} != 0 ] ; then
+            if [ -z "${RESULT}" ] ; then
+                RESULT="${PART}"
+            else
+                RESULT="${RESULT}-${PART}"
+            fi
+            break
+        fi
+
+        if [ ${TEAM} != 0 ] ; then
+            if [ -z "${RESULT}" ] ; then
+                RESULT="${PART}"
+            else
+                RESULT="${RESULT}-${PART}"
+            fi
+            continue
+        fi
+
+        if [ "${PART}" = "branches" ] ; then
+            BRANCH=1
+            RESULT="branch"
+            continue
+        fi
+
+        if [ "${PART}" = "tags" ] ; then
+            TAG=1
+            continue
+        fi
+
+        if [ "${PART}" = "team" ] ; then
+            TEAM=1
+            continue
+        fi
+    done
+
+    if [ ${TAG} != 0 ] ; then
+        echo ${RESULT}
+    else
+        echo SVN-${RESULT}-r${REV}${BASE:+-${BASE}}
+    fi
+else
+    echo "UNKNOWN__and_probably_unsupported"
+fi

Propchange: asterisk/team/pabelanger/non-root/build_tools/make_version
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/pabelanger/non-root/build_tools/make_version
------------------------------------------------------------------------------
    svn:executable = *

Propchange: asterisk/team/pabelanger/non-root/build_tools/make_version
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/pabelanger/non-root/build_tools/make_version
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the svn-commits mailing list