[Rear-users] SF.net SVN: rear:[531] trunk/usr/sbin/rear

dag- at users.sourceforge.net dag- at users.sourceforge.net
Wed Jun 1 19:38:33 CEST 2011


Revision: 531
          http://rear.svn.sourceforge.net/rear/?rev=531&view=rev
Author:   dag-
Date:     2011-06-01 17:38:33 +0000 (Wed, 01 Jun 2011)

Log Message:
-----------
Added subversion revision to rear version.
The revision number is easier to work with than dates,
if you need to verify against the repository.

For stable releases we probably want to rip out the
revision number.

  Stable:
    1.11.0
    1.11.1
    1.12.0
    1.12.2

  Subversion:
   1.11.0.423
   1.11.1.438
   1.12.0.439
   1.12.1.453

So that a newer stable release replaces an older subversion
snapshot and a newer subversion snapshot replaces on older
stable release.

Adding 'svn' to the string, might help understand what you
have in your hands (eg. 1.12.0svn423).

Modified Paths:
--------------
    trunk/usr/sbin/rear

Property Changed:
----------------
    trunk/usr/sbin/rear

Modified: trunk/usr/sbin/rear
===================================================================
--- trunk/usr/sbin/rear	2011-06-01 17:31:25 UTC (rev 530)
+++ trunk/usr/sbin/rear	2011-06-01 17:38:33 UTC (rev 531)
@@ -23,11 +23,10 @@
 
 # Versioning
 PRODUCT="Relax & Recover"
-VERSION="0.0.0"
-RELEASE_DATE='$Date$'
-# remove SVN related junk from release date
-RELEASE_DATE="${RELEASE_DATE#\$Date: }"
-RELEASE_DATE="${RELEASE_DATE% (*}"
+# Using a revision is easier to compare than a date string
+REVISION=$(echo '$Revision$' | awk '{print $2}')
+VERSION="1.12.0svn$REVISION"
+RELEASE_DATE=$(echo '$Date$' | awk '{print $2" "$3}')
 
 COPYRIGHT="Copyright (C) 2006-2011
         Schlomo Schapiro, Immobilien Scout GmbH


Property changes on: trunk/usr/sbin/rear
___________________________________________________________________
Modified: svn:keywords
   - Id Date
   + Id Date Revision


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rear-users mailing list