Config::Config is missing on CentOS 6 by default. sigh. fixed it by using ":" regardless the current OS.

pull/4/head
agentzh (章亦春) 13 years ago
parent 092b2f6b83
commit ca408fc450

5
util/configure vendored

@ -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;

@ -1,7 +1,7 @@
#!/bin/bash
main_ver=1.0.4
minor_ver=0rc3
minor_ver=0rc4
version=$main_ver.$minor_ver
echo $version

Loading…
Cancel
Save