tools-make/cpu.sh
Adam Fedor e9887e7d38 Backport changes from trunk
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/branches/stable@25563 72102866-910b-0410-8b05-ffd578937521
2007-11-07 18:56:37 +00:00

23 lines
794 B
Bash
Executable file

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