Hi Steffen,
> < ${rc} ${awk} 'BEGIN{line = ""}{
> gsub(/^[[:space:]]+/, "", $0)
> This removes leading indentation
> gsub(/[[:space:]]+$/, "", $0)
> if(gsub(/\\$/, "", $0)){
How does one escape a non-continuing backslash at the end of a line?
:-)
> line = line $0
> next
> }else
> line = line $0
> if(index(line, "#") == 1){
> line = ""
> This strips comments
> }else if(length(line)){
> print line
> line = ""
> }
> }' |
If make.rc isn't run by sh(1), but preprocessed by awk first then isn't
the next step to do the preprocessing stage on its own, and run that
output with sh, as well as inspect it, e.g. search for a «`» that could
be unterminated?
--
Cheers, Ralph.