1 # Copyright (C) 1993 Free Software Foundation, Inc.
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17 # Please email any bugs, comments, and/or additions to this file to:
20 # This file was written by Ken Raeburn (raeburn@cygnus.com).
24 set tmp [exec $AS -version < /dev/null]
25 # Should find a way to discard constant parts, keep whatever's
26 # left, so the version string could be almost anything at all...
27 regexp " \[0-9\]\[0-9\.a-zA-Z-\]+" $tmp version
29 regexp "\[0-9\.a-zA-Z-\]+" $tmp version
30 clone_output "[which $AS] version $version\n"
35 proc gas_start { prog } {
42 send_user "Executing $AS $ASFLAGS $prog\n"
44 catch "exec $AS $ASFLAGS $prog" comp_output
45 if ![string match "" $comp_output] then {
46 send_log "$comp_output\n"
48 send_user "$comp_output\n"
53 proc gas_test { arg testname } {
58 if ![string match "" $comp_output] then {
59 send_log "$comp_output\n"
61 send_user "|$comp_output|\n"
64 if [string match "" $comp_output] then {