wmii/cmd/wm/mklayout.sh
garbeam 43ed7943be removed frames container from area, areas contain clients only in their container,
instead the layout is responsible to provide a frame container of its frames
2005-12-07 16:06:16 +02:00

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