From 66832c03b48b99605cc0373982a07146d2cb2671 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 21 Jan 2010 22:56:12 +0000 Subject: share version more widely (needed for next commit) --- lib/MDV/Control_Center.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/MDV/Control_Center.pm b/lib/MDV/Control_Center.pm index d54a27f6..47bfa496 100755 --- a/lib/MDV/Control_Center.pm +++ b/lib/MDV/Control_Center.pm @@ -31,8 +31,12 @@ our @EXPORT = qw( $bindir $sbindir $xbindir $mcc_dir $themes_dir %programs + $version ); +our $version = `cat /etc/mandrakelinux-release` =~ /\b(\d+\.{1}.+\))/; + + #------------------------------------------------------------- # paths our ($bindir, $sbindir, $xbindir) = ("/usr/bin", "/usr/sbin", "/usr/X11R6/bin"); -- cgit v1.2.1