[Box Backup-commit] COMMIT r2329 - box/trunk/infrastructure

boxbackup-dev@boxbackup.org boxbackup-dev@boxbackup.org
Sun, 5 Oct 2008 16:21:51 +0100 (BST)


Author: chris
Date: 2008-10-05 16:21:50 +0100 (Sun, 05 Oct 2008)
New Revision: 2329

Added:
   box/trunk/infrastructure/printversion.pl
Log:
Add a script to print the Box software version, to substitute into the
installer and the documentation.


Copied: box/trunk/infrastructure/printversion.pl (from rev 2328, box/trunk/infrastructure/parcelpath.pl)
===================================================================
--- box/trunk/infrastructure/printversion.pl	                        (rev 0)
+++ box/trunk/infrastructure/printversion.pl	2008-10-05 15:21:50 UTC (rev 2329)
@@ -0,0 +1,12 @@
+#!perl
+
+$basedir = $0;
+$basedir =~ s|/.*||;
+$basedir .= "/..";
+-d $basedir or die "$basedir: $!";
+chdir $basedir or die "$basedir: $!";
+require "infrastructure/BoxPlatform.pm.in";
+
+print "$BoxPlatform::product_version\n";
+
+exit 0;