util/dist-check: added support for rc versions.

This commit is contained in:
agentzh (Yichun Zhang) 2013-04-20 23:08:41 -07:00
parent aadd93ff24
commit 3a873d7874
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ getopts("lf:", \%opts) or die "Usage: $0 [-f] <cores>\n";
my $jobs = shift || 4;
my $cwd = cwd();
if ($cwd !~ /ngx_openresty-(\d+(?:\.\d+)+)$/) {
if ($cwd !~ /ngx_openresty-(\d+(?:\.\d+)+(?:rc\d+)?)$/) {
die "Bad current working directory: $cwd\n";
}