3.5.15 `makefile-script' - create makefile script
Usage: (makefile-script text)
This function will take ordinary shell script text and reformat it
so that it will work properly inside of a shell script.
It does this by:
-
Except for the last line, putting the string, " ; \" on the end of every
line that does not end with a backslash.
-
Doubling the dollar sign character, unless it immediately precedes an
opening parenthesis or the single character make macros '*', '<', '@',
'?' or '%'. Other single character make macros without enclosing
parentheses will fail. For shell usage of the "$@", "$?" and "$*"
macros, you must enclose them with curly braces, i.e., "${?}".
-
Prefixes every line with a tab, unless the first line
already starts with a tab.
-
The newline character on the last line, if present, is suppressed.
This function is intended to be used approximately as follows:
| $(TARGET) : $(DEPENDENCIES)
<+ (out-push-new) +>
....arbitrary shell script text....
<+ (makefile-script (out-pop #t)) +>
|
Arguments:
text - the text of the script
This document was generated
by Bruce Korb on February, 4 2002
using texi2html