bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #35384] Request for a "writefile" function


From: anonymous
Subject: [bug #35384] Request for a "writefile" function
Date: Fri, 27 Jan 2012 16:08:52 +0000
User-agent: Mozilla/5.0 (Ubuntu; X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1

URL:
  <http://savannah.gnu.org/bugs/?35384>

                 Summary: Request for a "writefile" function
                 Project: make
            Submitted by: None
            Submitted on: Fri 27 Jan 2012 04:08:51 PM UTC
                Severity: 3 - Normal
              Item Group: Enhancement
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.82
        Operating System: None
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

This patch adds a "writefile" function. This is similar to the existing "info"
function, except that it writes to a file.

This is useful when you have a Make variable whose value is larger than the
OS-imposed limit on the maximum size of a command line, and you need to pass
this value to a target. While there are workarounds, they are either slow or
don't work in the general case. For example:

http://stackoverflow.com/questions/512567/create-a-file-from-a-large-makefile-variable

http://stackoverflow.com/questions/7247667/writing-contents-of-makefile-131000-chars-variable-to-a-file

The "writefile" function also avoids another problem with passing arbitrary
strings through as command-line arguments: it avoids the need to escape shell
control characters.

The patch is against 3.82. Please apply it. It's small, it's localized, and it
helps Make scale to large build environments.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 27 Jan 2012 04:08:51 PM UTC  Name: patch  Size: 3kB   By: None

<http://savannah.gnu.org/bugs/download.php?file_id=24906>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35384>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]