[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
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.



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:

Property Changed:

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"
-# remove SVN related junk from release date
+# Using a revision is easier to compare than a date string
+REVISION=$(echo '$Revision$' | awk '{print $2}')
+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