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