"Fossies" - the Fresh Open Source Software Archive

Member "cook-2.34/lib/en/user-guide/function/resolve.so" (25 Sep 2010, 1562 Bytes) of package /linux/misc/old/cook-2.34.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 .\"
    2 .\"     cook - file construction tool
    3 .\"     Copyright (C) 1990-1994, 1997, 2007, 2008 Peter Miller
    4 .\"
    5 .\"     This program is free software; you can redistribute it and/or modify
    6 .\"     it under the terms of the GNU General Public License as published by
    7 .\"     the Free Software Foundation; either version 3 of the License, or
    8 .\"     (at your option) any later version.
    9 .\"
   10 .\"     This program is distributed in the hope that it will be useful,
   11 .\"     but WITHOUT ANY WARRANTY; without even the implied warranty of
   12 .\"     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13 .\"     GNU General Public License for more details.
   14 .\"
   15 .\"     You should have received a copy of the GNU General Public License
   16 .\"     along with this program. If not, see
   17 .\"     <http://www.gnu.org/licenses/>.
   18 .\"
   19 .H 2 "resolve"
   20 This builtin function is used to resolve file names when using the
   21 .I search_list
   22 variable to locate files.
   23 This builtin function produces resolved file names as output.
   24 This is useful when taking partial copies of a source
   25 to perform controlled updates.
   26 The targets of recipes are always cooked into the current directory.
   27 .H 3 "Example"
   28 This function is used in cookbooks
   29 which  use the
   30 .I search_list
   31 functionality:
   32 .eB
   33 search_list = . baseline;
   34 
   35 %.o: %.c
   36 {
   37         [cc] [cc_flags] [addprefix -I [search_list]] [resolve %.c];
   38 }
   39 .eE
   40 .P
   41 The cookbooks distributed with Cook contain full support for the
   42 \f[CW]search_list\fP functionality.  They are a good source of examples
   43 of how to write recipes which take this into account.