Merge pull request #1155 from steffen-kiess/json-string
[mono.git] / mcs / class / System.XML / genresstringcs.sh
1 #!/usr/bin/sh
2
3 outfile=$1
4 infile=$2
5 namespace=$3
6
7 echo "namespace $3 {" > $1 || exit
8 echo "\tstatic partial class Res {" >> $1 || exit
9 sed -e 's/^;.*//' -e 's/doesn..t/doesn''t/' -e 's/`echo "\0222"`/''/' -e 's/\"/\"\"/g' -e 's/^\([_0-9a-ZA-Z]*\)=\(.*\)/public const string \1 = @"\2";/' $2 >> $1 || exit
10 echo "}" >> $1 || exit
11 echo "}" >> $1 || exit