Changeset 4776 for trunk/src


Ignore:
Timestamp:
Dec 11, 2000, 7:27:57 AM (25 years ago)
Author:
bird
Message:

Added search for the UNIX util called grep.exe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/configure.cmd

    r4715 r4776  
    1 /* $Id: configure.cmd,v 1.12 2000-12-02 23:32:38 bird Exp $
     1/* $Id: configure.cmd,v 1.13 2000-12-11 06:27:57 bird Exp $
    22 *
    33 * Configuration script.
    44 * Generates makefile.inc and an empty .depend file.
    55 *
    6  * Copyright (c) 1999-2000 knut st. osmundsen (knut.stange.osmundsen@pmsc.no)
     6 * Copyright (c) 1999-2000 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
    77 *
    88 * Project Odin Software License can be found in LICENSE.TXT
     
    9393        call lineout sIncFile, ''
    9494
     95        call lineout sIncFile, '################################################################################'
     96        call lineout sIncFile, '# Grep'
     97        call lineout sIncFile, '################################################################################'
     98        sGrep = SearchPaths('PATH', 'grep.exe', 'Path to UNIX-like grep utility which supports -v.');
     99        if (sGrep <> '') then
     100            call lineout sIncFile, 'GREP             =' sGrep || 'grep.exe'
     101        call lineout sIncFile, ''
     102
    95103        call stream sIncFile, 'c', 'close';
    96104
     
    154162        /* debug: say 'sEnv:'sEnv 'sFile:'sFile 'sPath:'sPath 'i:'i */
    155163        i = i + 2;
    156         sEnv  = arg(i);
    157         sFile = arg(i+1);
     164        if (arg() > i + 1) then
     165        do
     166            sEnv  = arg(i);
     167            sFile = arg(i+1);
     168        end
    158169    end
    159170
     
    168179    else
    169180    do
    170         if sPath <> '' then do
    171             /*  */
     181        if (sPath <> '') then
     182        do
     183            /* look for ..\. */
    172184            i = lastpos('..\', sFile);
    173             if i <> 0 then
     185            if (i <> 0) then
    174186                sFile = substr(sFile, i + 2);
    175187
Note: See TracChangeset for help on using the changeset viewer.