2005-11-18 18:54:58 +03:00
|
|
|
#!/bin/sh
|
2005-12-07 17:06:16 +03:00
|
|
|
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
|
2005-11-18 18:54:58 +03:00
|
|
|
for i in `ls layout_*.c`; do
|
|
|
|
FUNC="`echo \`basename $i\` | sed 's/\.c//g'`"
|
2005-12-07 17:06:16 +03:00
|
|
|
echo "void init_$FUNC();" >> layoutdef.h
|
|
|
|
echo " init_$FUNC();" >> layoutdef.c;
|
|
|
|
echo "SRC += $i" >>layoutdef.mk
|
2005-11-18 18:54:58 +03:00
|
|
|
done
|
2005-12-07 17:06:16 +03:00
|
|
|
echo "}" >> layoutdef.c
|