Fixed the problem that in a rare case, a set is downloaded and the neverballrc is...
[neverball] / scripts / gen-map-deps.sh
1 #!/bin/sh
2
3 test -n "$1" && test -n "$2" || exit 1
4
5 MAP=$1
6 SOL=$(echo $1 | sed -e "s/\.map$/\.sol/")
7 DATA=$2
8
9 OBJS=$(grep -E "^\"model\"" $MAP | cut -d \" -f 4 | sort | uniq | \
10     sed -e "s,\\\\,/,g" -e "s,^,$DATA/,")
11
12 echo "$SOL :" $OBJS
13 echo
14 echo "$OBJS" | sed -e "s/$/ :\n/"
15