diff options
-rwxr-xr-x | tools/c89.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/c89.sh b/tools/c89.sh new file mode 100755 index 0000000000..b25c9fda2d --- /dev/null +++ b/tools/c89.sh @@ -0,0 +1,15 @@ +#!/bin/sh -k +# +# Re-order arguments so that -L comes first +# +opts="" +lopts="" + +for arg in $* ; do + case $arg in + -L*) lopts="$lopts $arg" ;; + *) opts="$opts $arg" ;; + esac +done + +c89 $lopts $opts |