From ca408fc450c115ebc1c6434dbc3b111114ab4462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?agentzh=20=28=E7=AB=A0=E4=BA=A6=E6=98=A5=29?= <agentzh@gmail.com> Date: Mon, 11 Jul 2011 18:19:26 +0800 Subject: [PATCH] Config::Config is missing on CentOS 6 by default. sigh. fixed it by using ":" regardless the current OS. --- util/configure | 5 ++++- util/ver | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/util/configure b/util/configure index 30509d1..d61e5a1 100755 --- a/util/configure +++ b/util/configure @@ -615,7 +615,10 @@ sub can_run { my $_cmd = $cmd; return $_cmd if -x $_cmd; - for my $dir ((split /$Config::Config{path_sep}/, $ENV{PATH}), '.') { + # FIXME: this is a hack; MSWin32 is not supported anyway + my $path_sep = ':'; + + for my $dir ((split /$path_sep/, $ENV{PATH}), '.') { next if $dir eq ''; my $abs = File::Spec->catfile($dir, $_[0]); return $abs if -x $abs; diff --git a/util/ver b/util/ver index 22e4e2b..646ab76 100755 --- a/util/ver +++ b/util/ver @@ -1,7 +1,7 @@ #!/bin/bash main_ver=1.0.4 -minor_ver=0rc3 +minor_ver=0rc4 version=$main_ver.$minor_ver echo $version