You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
310 B
Bash
19 lines
310 B
Bash
#!/bin/bash
|
|
if [ $# -eq 0 ]
|
|
then
|
|
find . -name board.fmpp -exec bash genboards.sh '{}' \;
|
|
elif [ $# -eq 1 ]
|
|
then
|
|
path=$(readlink -f $(dirname $1))
|
|
echo "Processing: $1"
|
|
cd $path
|
|
if ! fmpp -q -C board.fmpp
|
|
then
|
|
echo
|
|
echo "aborted"
|
|
exit 1
|
|
fi
|
|
else
|
|
echo "illegal number of arguments"
|
|
fi
|