[dss-commits] r8756 - dss/trunk/tools

dss-commits at forum.digitalstrom.org dss-commits at forum.digitalstrom.org
Thu Sep 10 11:05:58 CEST 2009


Author: jwinkelmann
Date: 2009-09-10 11:05:58 +0200 (Thu, 10 Sep 2009)
New Revision: 8756

Modified:
   dss/trunk/tools/dss_gen_version_unix.sh
Log:
dss_gen_version_unix: use svnrevision (fixes #126)

Modified: dss/trunk/tools/dss_gen_version_unix.sh
===================================================================
--- dss/trunk/tools/dss_gen_version_unix.sh	2009-09-09 11:51:58 UTC (rev 8755)
+++ dss/trunk/tools/dss_gen_version_unix.sh	2009-09-10 09:05:58 UTC (rev 8756)
@@ -18,12 +18,8 @@
 rcs_root="undefined"
 if [ -n "$(which svn)" ]; then
   if [ -d $BASEDIR/.svn ]; then
-     rcs_rev=$(svn info $BASEDIR|grep ^Revision:| sed -e 's|Revision:\s*||')
+     rcs_rev=$(svnversion $BASEDIR)
      rcs_root=$(svn info $BASEDIR|grep ^URL:|sed -e 's|URL:\s*||')
-     rcs_st=$(svn st $BASEDIR|grep ^M)
-     if [ -n "$rcs_st" ]; then
-	rcs_rev="$rcs_rev-dirty"
-     fi
   elif [ -d $BASEDIR/.git ]; then
     if [ -d $BASEDIR/.git/svn ]; then
      rcs_rev=svn-$(git svn info|grep ^Revision:| sed -e 's|Revision:\s*||')+



More information about the dss-commits mailing list