1 1.1 mrg # Extract the version of a single symbol from the version map. 2 1.1.1.10 mrg # Copyright (C) 2014-2024 Free Software Foundation, Inc. 3 1.1 mrg # 4 1.1 mrg # This file is part of GCC. 5 1.1 mrg # 6 1.1 mrg # GCC is free software; you can redistribute it and/or modify it under 7 1.1 mrg # the terms of the GNU General Public License as published by the Free 8 1.1 mrg # Software Foundation; either version 3, or (at your option) any later 9 1.1 mrg # version. 10 1.1 mrg # 11 1.1 mrg # GCC is distributed in the hope that it will be useful, but WITHOUT 12 1.1 mrg # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 1.1 mrg # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 14 1.1 mrg # License for more details. 15 1.1 mrg # 16 1.1 mrg # You should have received a copy of the GNU General Public License 17 1.1 mrg # along with GCC; see the file COPYING3. If not see 18 1.1 mrg # <http://www.gnu.org/licenses/>. 19 1.1 mrg 20 1.1 mrg /^[A-Z]/ { 21 1.1 mrg version = $1; 22 1.1 mrg next; 23 1.1 mrg } 24 1.1 mrg 25 1.1 mrg $1 == symbol { 26 1.1 mrg print version 27 1.1 mrg exit 28 1.1 mrg } 29