lkml.org 
[lkml]   [1996]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Faster depend written in Perl

    On 27-Jul-96 G Sumner Hayes wrote:
    >>quinlan@charcoal.eg.bucknell.edu (Daniel Quinlan) writes:
    >>
    >> Defaulting to the perl version is probably better since most people
    >> don't have mawk.
    >
    >The traditional answer to this has been that not all Linux boxes have
    >perl, but all have awk. So we can't require perl to build the kernel.
    >
    >I don't know how valid this argument is these days, though.
    >
    >TTFN,
    >
    >Sumner
    >
    >
    it's a rather stupid argument, since it's easy enough to
    test whether /usr/bin/perl exists and to set DEPEND
    accordingly.

    ADEPEND = $(AWK) -f $(TOPDIR)/scripts/depend.awk
    PDEPEND = perl $(TOPDIR)/scripts/depend.pl

    DEPEND := $(shell if [ -x /usr/bin/perl ]; then echo $(PDEPEND); \
    else echo $(ADEPEND); fi)

    Of course we should either set PERL = /usr/bin/perl or
    make the test 'if [ -x `which perl` ]'.

    Rob
    (rriggs@tesser.com)


    \
     
     \ /
      Last update: 2005-03-22 13:38    [W:2.513 / U:1.292 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site