mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-05 20:26:09 +01:00
19 lines
520 B
Bash
Executable file
19 lines
520 B
Bash
Executable file
#!/bin/sh
|
|
echo "/* This file is autogenerated by" $(basename $0) "*/"
|
|
echo
|
|
echo "const name_func_link_t UicbList[] ="
|
|
echo "{"
|
|
for file in *.h layouts/*.h
|
|
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},"
|
|
grep -q "\*$shortname\*" awesomerc.1.txt || \
|
|
echo " WARNING: $uicb NOT documented" >&2
|
|
done
|
|
done
|
|
|
|
echo " {NULL, NULL}"
|
|
echo "};"
|