2008-01-15 16:52:30 +01:00
|
|
|
#!/bin/sh
|
2008-01-25 11:49:14 +01:00
|
|
|
top_srcdir="${1-.}"
|
2008-01-15 16:52:30 +01:00
|
|
|
echo "/* This file is autogenerated by" $(basename $0) "*/"
|
|
|
|
echo
|
|
|
|
echo "const name_func_link_t UicbList[] ="
|
|
|
|
echo "{"
|
2008-01-25 11:49:14 +01:00
|
|
|
for file in ${top_srcdir}/*.h ${top_srcdir}/layouts/*.h
|
2008-01-15 16:52:30 +01:00
|
|
|
do
|
|
|
|
echo " /* $file */"
|
|
|
|
grep '^Uicb uicb_' $file | cut -d' ' -f2 | cut -d\; -f1 | while read uicb
|
|
|
|
do
|
|
|
|
shortname=$(echo $uicb | cut -d _ -f2-)
|
|
|
|
echo " {\"$shortname\", $uicb},"
|
2008-01-25 11:49:14 +01:00
|
|
|
grep -q "\*$shortname\*" ${top_srcdir}/awesomerc.1.txt || \
|
2008-01-16 07:57:12 +01:00
|
|
|
echo " WARNING: $uicb NOT documented" >&2
|
2008-01-15 16:52:30 +01:00
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
echo " {NULL, NULL}"
|
|
|
|
echo "};"
|