]> git.openfabrics.org - ~vlad/build.git/commitdiff
add -s to ofed_info for short package version print
authorOren Duer <oren@mellanox.co.il>
Mon, 13 Feb 2012 14:20:49 +0000 (16:20 +0200)
committerVladimir Sokolovsky <vlad@mellanox.com>
Thu, 16 Feb 2012 08:35:01 +0000 (10:35 +0200)
Signed-off-by: Oren Duer <oren@mellanox.co.il>
build.pl

index 67f56066b09d2b31b8b2a7d47bf4674f20b9bd68..eb3afeb0a906dfad3340e8419b4e0cb2e839fcd0 100755 (executable)
--- a/build.pl
+++ b/build.pl
@@ -300,6 +300,8 @@ sub get_from_git
                                my $list_of_packages = 'kernel-ib';
                                open (OUT, "> ofed_info") or die "Can't open ofed_info file: $!\n";
                                print OUT "#!/bin/bash\n";
+                               my $firstline = <@file>;
+                               print OUT "if [ \"\$1\" == \"-s\" ]; then echo $firstline; exit; fi\n";
                                print OUT "cat << EOF\n";
                                foreach my $line (@file) {
                                        print OUT $line;