projects
/
web/konrad/ip6calc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9168cd3
)
fix backslash in help text
author
Konrad Rosenbaum
<konrad@silmor.de>
Fri, 10 Oct 2014 19:47:36 +0000 (21:47 +0200)
committer
Konrad Rosenbaum
<konrad@silmor.de>
Fri, 10 Oct 2014 19:47:36 +0000 (21:47 +0200)
genhelp.sh
patch
|
blob
|
history
diff --git
a/genhelp.sh
b/genhelp.sh
index
1f35c83
..
aec5590
100755
(executable)
--- a/
genhelp.sh
+++ b/
genhelp.sh
@@
-8,7
+8,7
@@
echo '//See genhelp.sh for the generator' >>help.h
generate(){
echo '#define' $1 '\' >>help.h
- cat $2 |sed 's/"/\\"/g' | sed 's/^\(.*\)$/ "\1\\n"\\/' >>help.h
+ cat $2 |sed 's/\\/\\\\/' |sed 's/"/\\"/g' | sed 's/^\(.*\)$/ "\1\\n"\\/' >>help.h
echo '""' >>help.h
}