Skip to content

Commit fcc946a

Browse files
committedSep 15, 2012
rawspeed xmldata converted to string array
1 parent 07b3ade commit fcc946a

File tree

2 files changed

+2356
-2354
lines changed

2 files changed

+2356
-2354
lines changed
 

‎rsxml2c.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/sh
22

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

‎src/rawspeed_xmldata.cpp

+2,352-2,351
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.