File: rsxml2c.sh

package info (click to toggle)
libraw 0.21.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,496 kB
  • sloc: cpp: 53,067; ansic: 2,430; makefile: 133; sh: 82; perl: 58
file content (6 lines) | stat: -rwxr-xr-x 156 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
#!/bin/sh

echo "const char *_rawspeed_data_xml[]={"
cat $1 | tr -d '\015' | sed -e 's/\\/\\\\/g;s/"/\\"/g;s/  /\\t/g;s/^/"/;s/$/\\n",/'
echo "0"
echo "};"