mirror of
https://github.com/0intro/wmii
synced 2024-12-18 01:23:56 +03:00
43ed7943be
instead the layout is responsible to provide a frame container of its frames
13 lines
414 B
Bash
13 lines
414 B
Bash
#!/bin/sh
|
|
rm -f layoutdef.h layoutdef.c layout.mk
|
|
echo "#include \"layoutdef.h\"" > layoutdef.c
|
|
echo "#include \"wm.h\"" >> layoutdef.c
|
|
echo "void init_layouts() {" >> layoutdef.c
|
|
for i in `ls layout_*.c`; do
|
|
FUNC="`echo \`basename $i\` | sed 's/\.c//g'`"
|
|
echo "void init_$FUNC();" >> layoutdef.h
|
|
echo " init_$FUNC();" >> layoutdef.c;
|
|
echo "SRC += $i" >>layoutdef.mk
|
|
done
|
|
echo "}" >> layoutdef.c
|