2012-02-24 01:55:07 -08:00
|
|
|
#!/bin/sh
|
2012-08-02 01:17:59 -07:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
# #
|
|
|
|
# OCaml #
|
|
|
|
# #
|
|
|
|
# Xavier Leroy, projet Cristal, INRIA Rocquencourt #
|
|
|
|
# #
|
|
|
|
# Copyright 2012 Institut National de Recherche en Informatique et #
|
|
|
|
# en Automatique. All rights reserved. This file is distributed #
|
|
|
|
# under the terms of the GNU Library General Public License, with #
|
|
|
|
# the special exception on linking described in file ../../LICENSE. #
|
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
2012-02-24 01:55:07 -08:00
|
|
|
if test "$verbose" = yes; then
|
|
|
|
echo "tryassemble: $aspp -o tst $*" >&2
|
|
|
|
$aspp -o tst $* || exit 100
|
|
|
|
else
|
|
|
|
$aspp -o tst $* 2> /dev/null || exit 100
|
|
|
|
fi
|
2012-06-17 01:17:43 -07:00
|
|
|
|
|
|
|
# test as also (if differs)
|
|
|
|
if test "$aspp" != "$as"; then
|
|
|
|
if test "$verbose" = yes; then
|
|
|
|
echo "tryassemble: $as -o tst $*" >&2
|
|
|
|
$as -o tst $* || exit 100
|
|
|
|
else
|
|
|
|
$as -o tst $* 2> /dev/null || exit 100
|
|
|
|
fi
|
|
|
|
fi
|