1 #!/bin/sh 2 test -z "$1" && exit 1 3 echo "/* GENERATED */" 4 echo "#ifndef cursor_i_h" 5 echo "#define cursor_i_h" 6 sed -ne 's/^->"\(\S*\)" \(\d*\)/#define \1 \2/p' < $1 || exit $? 7 echo "#endif" 8