From: Brian J. Murrell Date: Mon, 15 Nov 2010 21:15:28 +0000 (+0800) Subject: b=24095 don't really need configure --with-linux X-Git-Tag: 2.0.56.0~6 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=e4189c54470deff4a98f0b2bb03ac6be7ed85ce9;ds=sidebyside b=24095 don't really need configure --with-linux Don't really need to have run configure --with-linux for version-tag.pl to work. i=wangyb i=cliff --- diff --git a/lustre/scripts/version_tag.pl b/lustre/scripts/version_tag.pl index 6ba2494..61796c9 100644 --- a/lustre/scripts/version_tag.pl +++ b/lustre/scripts/version_tag.pl @@ -143,10 +143,10 @@ my $pristine = is_pristine(); my $buildid = get_buildid(); if ($progname eq "version_tag.pl") { - die("you have to configure with a linux kernel source/headers tree (i.e. using\n--with-linux=) before you can run this script\n") - if ($am_linuxdir eq ""); + my $kernver = ""; + $kernver = get_kernver($am_linuxdir, $am_linuxobjdir) + if ($am_linuxdir ne ""); - my $kernver = get_kernver($am_linuxdir, $am_linuxobjdir); my $linuxdir =~ s/\//\./g; generate_ver($tag, $local_version, $buildid, $linuxdir, $pristine, $kernver, $ENV{LUSTRE_VERS});