summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
32a9de4)
Signed-off-by: Michael Buesch <mb@bu3sch.de>
+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\""
-$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" $@