projects
/
b43-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
b43-asm: Fix some dependency issues
[b43-tools.git]
/
assembler
/
b43-asm
diff --git
a/assembler/b43-asm
b/assembler/b43-asm
index 0f2476aa34e86e108559f40e48f5bcfd4aec492e..5d6b54e8573c52c83258c6aa49d95306021746e9 100755
(executable)
--- a/
assembler/b43-asm
+++ b/
assembler/b43-asm
@@
-1,8
+1,8
@@
-#!/bin/
ba
sh
+#!/bin/sh
#
# b43-asm preprocessing frontend
#
#
# b43-asm preprocessing frontend
#
-# Copyright (c) 20
07 Michael Buesch <mb@bu3sch.de
>
+# Copyright (c) 20
10 Michael Buesch <m@bues.ch
>
# Licensed under the GNU/GPL version 2.
#
# Licensed under the GNU/GPL version 2.
#
@@
-41,11
+41,25
@@
shift
outfile="$1"
shift
outfile="$1"
shift
+cpp_args=
+if [ "$1" = "--cpp-args" ]; then
+ shift
+ while [ "$1" != "--" ]; do
+ if [ $# -eq 0 ]; then
+ echo "ERROR: --cpp-args must be terminated by --"
+ exit 4
+ fi
+ cpp_args="$cpp_args $1"
+ shift
+ done
+ shift
+fi
+
if [ "$infile" != "-" ]; then
if ! [ -r "$infile" ]; then
echo "ERROR: Can not read input file \"$infile\""
if [ "$infile" != "-" ]; then
if ! [ -r "$infile" ]; then
echo "ERROR: Can not read input file \"$infile\""
- exit
4
+ exit
5
fi
fi
fi
fi
-$CPP -x c++ -traditional-cpp "$infile" | $B43_ASM "-" "$outfile" --__real_infile "$infile" $@
+$CPP -x c++ -traditional-cpp
$cpp_args
"$infile" | $B43_ASM "-" "$outfile" --__real_infile "$infile" $@