projects
/
neverball
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add missing newline
[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