Avoid an easy-to-fix function cast
[geany-mirror.git] / scripts / gen-signallist.sh
blobbf56ec7ff52de6705ddf89f2ffdc1e8bdb500480
1 #!/bin/sh
3 set -e
5 HEADER="/* This file is auto-generated, do not edit. */"
6 TEXT=$(sed -n 's/^.*handler="\([^"]\{1,\}\)".*$/ITEM(\1)/p' "$1" | sort | uniq)
8 printf "%s\n%s\n" "$HEADER" "$TEXT" > "$2"