File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 2727plugin=` basename " $path " ` ;
2828outfilename=` basename $outfile ` ;
2929
30- # See http://stackoverflow.com/a/16576291
31- # On Mac OS's sed, \n is not recognized as a newline character, but
32- # \[actual newline] works
33- desc= ` sed -e ' :a ' -e ' N ' -e ' $!ba ' -e ' s/\"/\\\"/g ' -e ' s/\n/\\\\n"\\
34- "/g ' " $path /README.md" ` ;
30+ # s/"/\\"/g - replace " with \" throughout
31+ # 1!s/^/"/g - Apart from the first line, add a " to the start of each line
32+ # $!s/$/\\\\n"/g - Apart from the last line, add a \\n (i.e. an escaped newline)
33+ # and a " to the end of each line
34+ desc= ` sed -e ' s/"/\\"/g ' -e ' 1!s/^/"/ ' -e ' $!s/$/\\\\n"/ ' " $path /README.md" ` ;
3535
3636identifier=` echo " PLUGINS_${plugin} _${outfilename% .h} _H_" | tr ' [:lower:]' ' [:upper:]' `
3737
You can’t perform that action at this time.
0 commit comments