projects
/
b43-tools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ec6fa6e46c872aef30b044cefb4cb8a076b21a75
[b43-tools.git]
/
b43-asm
1
#!/bin/sh
2
3
installed=0
4
5
if [ -z "$B43_ASM" ]; then
6
if [ $installed -eq 0 ] && [ -x "./b43-asm.bin" ]; then
7
B43_ASM="./b43-asm.bin"
8
else
9
B43_ASM="b43-asm.bin"
10
fi
11
fi
12
13
if [ -z "$CPP" ]; then
14
CPP="cpp"
15
fi
16
17
if [ $# -lt 2 ]; then
18
$B43_ASM --help
19
exit 1
20
fi
21
22
infile="$1"
23
shift
24
outfile="$1"
25
shift
26
27
cat "$infile" | $CPP -traditional-cpp | $B43_ASM "-" "$outfile" $@