]> err.no Git - sope/blob - cpu.sh
24fd04d8af4072665b3f5ad820c171c6f310eaa2
[sope] / cpu.sh
1 #! /bin/sh
2 #
3 #   cpu.sh
4 #
5 #   Print out the CPU from a canonical name.
6 #
7 #   Copyright (C) 1997 Free Software Foundation, Inc.
8 #
9 #   Author:  Scott Christley <scottc@net-community.com>
10 #
11 #   This file is part of the GNUstep Makefile Package.
12 #
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.
17 #   
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 #   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23 echo $1 | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'