ceph/src/yasm-wrapper
Casey Bodley f7f58a61aa yasm-wrapper: dont echo the yasm command line
commented out the echos because they're noisy. if anyone needs to debug
the wrapper in the future, they can uncomment

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-08-22 19:31:58 -04:00

45 lines
642 B
Bash
Executable File

#!/bin/sh -e
# libtool and yasm do not get along.
# filter out any crap that libtool feeds us that yasm does not understand.
#echo $0: got $*
new=""
touch=""
while [ -n "$*" ]; do
case "$1" in
-f )
shift
new="$new -f $1"
shift
;;
-g* | -f* | -W* | -MD | -MP | -fPIC | -c | -D* | --param* | -O* | -m* | -pipe | ggc-min* )
shift
;;
-I )
shift
new="$new -i $1"
shift
;;
-MT )
shift
shift
;;
-MF )
shift
touch="$1"
shift
;;
* )
new="$new $1"
shift
;;
esac
done
#echo $0: yasm $new
yasm $new
[ -n "$touch" ] && touch $touch
true