~ubuntu-branches/ubuntu/oneiric/openafs/oneiric-201305130334

« back to all changes in this revision

Viewing changes to debian/kernel-version

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2006-10-21 20:57:09 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20061021205709-y5keam1v20qxjwwo
Tags: 1.4.2-2
Upstream fix to prevent butc segfaulting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
unless ($ksrc && open (VERSION, "$ksrc/include/linux/version.h")) {
9
9
    exit 0;
10
10
}
 
11
my $found;
11
12
my $line = <VERSION>;
12
13
if ($line =~ /"(.+)"/) {
13
14
    print "$1\n";
 
15
    $found = 1;
 
16
}
 
17
exit 0 if $found;
 
18
unless (open (VERSION, "$ksrc/include/config/kernel.release")) {
 
19
    exit 0;
 
20
}
 
21
if ($line = <VERSION>) {
 
22
    print "$line";
14
23
}
15
24
exit 0;