mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
17 lines
426 B
Bash
Executable file
17 lines
426 B
Bash
Executable file
#!/bin/sh
|
|
echo "/* This file is autogenerated by" $(basename $0) "*/"
|
|
echo
|
|
echo "const name_func_link_t LayoutList[] ="
|
|
echo "{"
|
|
for file in layouts/*.h
|
|
do
|
|
echo " /* $file */"
|
|
grep '^LayoutArrange layout_' $file | cut -d' ' -f2 | cut -d\; -f1 | while read layout
|
|
do
|
|
shortname=$(echo $layout | cut -d _ -f2-)
|
|
echo " {\"$shortname\", $layout},"
|
|
done
|
|
done
|
|
|
|
echo " {NULL, NULL}"
|
|
echo "};"
|