aboutsummaryrefslogtreecommitdiffstats
path: root/macros/mozilla-version.pl
diff options
context:
space:
mode:
authorKevin Gibbs <kgibbs@src.gnome.org>2001-07-21 05:39:10 +0800
committerKevin Gibbs <kgibbs@src.gnome.org>2001-07-21 05:39:10 +0800
commit5637adc2c07617b7f5ea206d24cfa073787a4e0d (patch)
treeafacbc5d8192c3f0dadffe1601977defcfc12bd5 /macros/mozilla-version.pl
parentebed1c3e177855c79663ba7208cd620cd76c21f0 (diff)
downloadgsoc2013-evolution-5637adc2c07617b7f5ea206d24cfa073787a4e0d.tar
gsoc2013-evolution-5637adc2c07617b7f5ea206d24cfa073787a4e0d.tar.gz
gsoc2013-evolution-5637adc2c07617b7f5ea206d24cfa073787a4e0d.tar.bz2
gsoc2013-evolution-5637adc2c07617b7f5ea206d24cfa073787a4e0d.tar.lz
gsoc2013-evolution-5637adc2c07617b7f5ea206d24cfa073787a4e0d.tar.xz
gsoc2013-evolution-5637adc2c07617b7f5ea206d24cfa073787a4e0d.tar.zst
gsoc2013-evolution-5637adc2c07617b7f5ea206d24cfa073787a4e0d.zip
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=11279
Diffstat (limited to 'macros/mozilla-version.pl')
-rw-r--r--macros/mozilla-version.pl12
1 files changed, 12 insertions, 0 deletions
diff --git a/macros/mozilla-version.pl b/macros/mozilla-version.pl
new file mode 100644
index 0000000000..21e20c63ff
--- /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;