OVMS3/OVMS.V3/components/ovms_webserver/tools/mksrc

5 lines
186 B
Text
Raw Normal View History

#!/bin/bash
# convert text to C string
# usage: mksrc file.htm [>file.cpp]
cat $1 | grep -v '^[[:space:]]*$' | sed -e 's:\\:\\\\:g' -e 's:":\\":g' -e 's:^\( *\): \1":' -e 's:$:\\n":'