File: rsxml2c.sh

package info (click to toggle)
libraw 0.19.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,396 kB
  • sloc: cpp: 39,147; ansic: 23,363; perl: 145; makefile: 87; sh: 77
file content (6 lines) | stat: -rwxr-xr-x 156 bytes parent folder | download | duplicates (5)
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 "};"