|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
.parse-deps breaks when inputs such as the following are passed:
foo.o: \
foo.c \
foo.h
There's 3 issues:
1. The first \ wouldn't be folded as the space prior to the \ would be
removed by the removal of the target name.
2. Extra spaces would end up in front of every name in the final output.
3. \n in the pattern of the s command is not portable to non-gnu-sed.
The new version's folding loop:
1. Removes any double forward slashes currently present in the pattern
space.
2. Adds a double forward slash at the end of the line.
3. Removes the backslash, double forward slash, character following it
(newline) and any spaces following that character.
This solves all three problems.
|