Czech translation update (via transifex.net)
[cinaest] / autovapi.sh
1 #!/bin/sh
2 #
3 # Generate config.vapi from config.h
4 #
5 (
6 echo '// config.vapi.  Generated from config.h by autovapi.sh.'
7 echo '[CCode (cheader_filename = "config.h")]'
8 echo 'namespace Config {'
9 sed -ne 's/#define \(HAVE_[A-Z_]*\) \([0-9]*\)$/\t\[CCode (cname = \"\1\"\)]\n\tconst bool \1;/p' -e 's/#define \([A-Z_]*\) \([0-9]*\)$/\t\[CCode (cname = \"\1\"\)]\n\tconst int \1;/p' -e 's/#define \([A-Z_]*\) \(\".*\"\)$/\t\[CCode (cname = \"\1\"\)]\n\tconst string \1;/p' < config.h
10 echo '}'
11 ) > vapi/config.vapi