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/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make