Browse Source

Improved template.sh to escape the comma, which breaks the sed call in our Makefile

testing
Alejandro 16 years ago
parent
commit
efd6b42e1a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      root/template.sh

+ 3
- 1
root/template.sh

@ -1,3 +1,5 @@
#!/bin/sh
cat "${0%/*}/$1.in" | tr '\n' '|' | sed -e 's/|*$//' -e 's/|/\\n/g' -e 's/&/\\&/g' -e 's/$/\\n\n/'
cat "${0%/*}/$1.in" |
tr '\n' '|' | sed -e 's/|*$//' -e 's/|/\\n/g' -e 's/$/\\n\n/' \
-e 's/&/\\&/g' -e 's/,/\\,/g'

Loading…
Cancel
Save