28 lines
597 B
Bash
28 lines
597 B
Bash
|
#!/bin/sh
|
||
|
function verbmsg()
|
||
|
{
|
||
|
true
|
||
|
# echo $1
|
||
|
}
|
||
|
|
||
|
echo "Updating directories"
|
||
|
for i in `find firmware/ -type d `
|
||
|
do
|
||
|
if test -d simulat0r/$i
|
||
|
then verbmsg "OK Directory already exists: $i"
|
||
|
else mkdir -v simulat0r/$i
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
echo "Updating bridge files"
|
||
|
for i in `find firmware/ \! -path firmware/lcd/allfonts.h -type f -iname \*.[ch]`
|
||
|
do
|
||
|
if test -f simulat0r/$i;
|
||
|
then
|
||
|
verbmsg "OK File already exists: $i"
|
||
|
else
|
||
|
echo Writing bridge file simulat0r/$i
|
||
|
(printf "/* AUTOGENERATED SOURCE FILE */\n"; echo \#include \"`dirname $i | sed "s#[^/]*#..#g" `/../$i\") >simulat0r/$i
|
||
|
fi
|
||
|
done
|