notaz.gp2x.de
/
ia32rtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.def tool, generate .lib and tramp on demand
[ia32rtools.git]
/
run_imp.sh
diff --git
a/run_imp.sh
b/run_imp.sh
index
fd049d0
..
7c10376
100755
(executable)
--- a/
run_imp.sh
+++ b/
run_imp.sh
@@
-2,8
+2,8
@@
grep 'extrn ' StarCraft.asm | awk '{print $2}' | awk -F: '{print $1}' > implist
grep 'extrn ' StarCraft.asm | awk '{print $2}' | awk -F: '{print $1}' > implist
-echo ".data" >
tramp.s
-echo ".align 4" >>
tramp.s
+echo ".data" >
$1
+echo ".align 4" >>
$1
cat implist | while read i; do
rm -f tmpsym
cat implist | while read i; do
rm -f tmpsym
@@
-30,8
+30,8
@@
cat implist | while read i; do
exit 1
fi
exit 1
fi
- echo ".globl $i" >>
tramp.s
- echo "$i:" >>
tramp.s
- echo " .long $sym" >>
tramp.s
- echo >>
tramp.s
+ echo ".globl $i" >>
$1
+ echo "$i:" >>
$1
+ echo " .long $sym" >>
$1
+ echo >>
$1
done
done