rename awclient.[ch] to socket.[ch]
[awesome.git] / build-utils / uicbgen.sh
blob744caa96131de130ef51883d411e120cb182f724
1 #!/bin/sh
2 top_srcdir="${1-.}"
3 echo "/* This file is autogenerated by" $(basename $0) "*/"
4 echo
5 echo "const name_func_link_t UicbList[] ="
6 echo "{"
7 for file in ${top_srcdir}/*.h ${top_srcdir}/layouts/*.h
8 do
9 echo " /* $file */"
10 grep '^Uicb uicb_' $file | cut -d' ' -f2 | cut -d\; -f1 | while read uicb
12 shortname=$(echo $uicb | cut -d _ -f2-)
13 echo " {\"$shortname\", $uicb},"
14 grep -q "\*$shortname\*" ${top_srcdir}/awesomerc.1.txt || \
15 echo " WARNING: $uicb NOT documented" >&2
16 done
17 done
19 echo " {NULL, NULL}"
20 echo "};"