diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-10-05 15:21:50 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-10-05 15:21:50 +0000 |
commit | bb591d01f13a5c50d6cee571097f1119150bba6d (patch) | |
tree | 9b7a13b8382c10ca6b9abfc830d523335e80d7ef | |
parent | ef0777633f49ac643c7184cb2c26dcb798eaf1c6 (diff) |
Add a script to print the Box software version, to substitute into the
installer and the documentation.
-rw-r--r-- | infrastructure/printversion.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/infrastructure/printversion.pl b/infrastructure/printversion.pl new file mode 100644 index 00000000..13815284 --- /dev/null +++ b/infrastructure/printversion.pl @@ -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; |