5 # Print out the CPU from a canonical name.
7 # Copyright (C) 1997 Free Software Foundation, Inc.
9 # Author: Scott Christley <scottc@net-community.com>
11 # This file is part of the GNUstep Makefile Package.
13 # This library is free software; you can redistribute it and/or
14 # modify it under the terms of the GNU General Public License
15 # as published by the Free Software Foundation; either version 2
16 # of the License, or (at your option) any later version.
18 # You should have received a copy of the GNU General Public
19 # License along with this library; see the file COPYING.LIB.
20 # If not, write to the Free Software Foundation,
21 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 echo $1 | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'