summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-21 22:56:12 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-21 22:56:12 +0000
commit66832c03b48b99605cc0373982a07146d2cb2671 (patch)
tree608cf9cfe7380cd847edf4a83c6293d15fe5712b /lib
parent2686f3731a0db6d9b0b0682f0563ac1ebfa4872e (diff)
downloadcontrol-center-66832c03b48b99605cc0373982a07146d2cb2671.tar
control-center-66832c03b48b99605cc0373982a07146d2cb2671.tar.gz
control-center-66832c03b48b99605cc0373982a07146d2cb2671.tar.bz2
control-center-66832c03b48b99605cc0373982a07146d2cb2671.tar.xz
control-center-66832c03b48b99605cc0373982a07146d2cb2671.zip
share version more widely (needed for next commit)
Diffstat (limited to 'lib')
-rwxr-xr-xlib/MDV/Control_Center.pm4
1 files changed, 4 insertions, 0 deletions
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");