mirror of
https://github.com/0intro/wmii
synced 2024-12-18 09:32:54 +03:00
13 lines
384 B
Bash
13 lines
384 B
Bash
#!/bin/sh
|
|
rm -f layout.h layout.c layout.mk
|
|
echo "#include \"layout.h\"" > layout.c
|
|
echo "#include \"wm.h\"" >> layout.c
|
|
echo "void init_layouts() {" >> layout.c
|
|
for i in `ls layout_*.c`; do
|
|
FUNC="`echo \`basename $i\` | sed 's/\.c//g'`"
|
|
echo "void init_$FUNC();" >> layout.h
|
|
echo " init_$FUNC();" >> layout.c;
|
|
echo "SRC += $i" >>layout.mk
|
|
done
|
|
echo "}" >> layout.c
|