From e4189c54470deff4a98f0b2bb03ac6be7ed85ce9 Mon Sep 17 00:00:00 2001 From: "Brian J. Murrell" Date: Tue, 16 Nov 2010 05:15:28 +0800 Subject: [PATCH] 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 --- lustre/scripts/version_tag.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}); -- 1.8.3.1