diff options
author | Kevin Gibbs <kgibbs@src.gnome.org> | 2001-07-20 21:39:10 +0000 |
---|---|---|
committer | Kevin Gibbs <kgibbs@src.gnome.org> | 2001-07-20 21:39:10 +0000 |
commit | da37a018b4221309f7e5f8e6659203a0d8ec7129 (patch) | |
tree | 7c70597f51080008bfda6c2890aa68fabf69e632 /macros/mozilla-version.pl | |
parent | 5e59e0506dd3dded338ddf9168eb41dbd600257f (diff) | |
download | gnome-common-da37a018b4221309f7e5f8e6659203a0d8ec7129.tar.gz |
Make dist, dist check, and rpm are now supported and working. If you want to distribute a copy of SashMo to someone, you should type "make dist" and send them the tarball.
svn path=/trunk/; revision=1843
Diffstat (limited to 'macros/mozilla-version.pl')
-rw-r--r-- | macros/mozilla-version.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/macros/mozilla-version.pl b/macros/mozilla-version.pl new file mode 100644 index 0000000..21e20c6 --- /dev/null +++ b/macros/mozilla-version.pl @@ -0,0 +1,12 @@ +#!/usr/bin/perl + +# Tiny Perl script to check the mozilla version. I don't even like Perl. +# to make things easier on myself, I'm just going to treat the mozilla version as base 10. This will probably break + +# Author: Andrew Chatham + +$ver = 0; +while (<>) { + if (/useragent.misc\", \"rv:([0-9]+)\.([0-9]+)\.([0-9]+)/) { $ver = $1 * 100 + $2 * 10 + $3; } +} +print $ver; |