1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../ghc/host-triplet.patch
5 # Copyright (C) 2010 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- ghc-6.12.1/configure.vanilla 2010-01-03 19:31:54.000000000 +0100
18 +++ ghc-6.12.1/configure 2010-01-03 19:35:03.000000000 +0100
22 BuildArch=`echo "$build" | sed 's/-.*//'`
23 -BuildVendor=`echo "$build" | sed -e 's/.*-\(.*\)-.*/\1/'`
24 -BuildOS=`echo "$build" | sed 's/.*-//'`
25 +BuildVendor=`echo "$build" | sed -e 's/[^-]*-\([^-]*\)-.*/\1/'`
26 +BuildOS=`echo "$build" | sed -e 's/[^-]*-[^-]*-\([^-]*\)\(-.*\)*/\1/'`
27 BuildPlatform_CPP=`echo "$BuildPlatform" | sed -e 's/\./_/g' -e 's/-/_/g'`
28 BuildArch_CPP=` echo "$BuildArch" | sed -e 's/\./_/g' -e 's/-/_/g'`
29 BuildVendor_CPP=` echo "$BuildVendor" | sed -e 's/\./_/g' -e 's/-/_/g'`
33 HostArch=`echo "$host" | sed 's/-.*//'`
34 -HostVendor=`echo "$host" | sed -e 's/.*-\(.*\)-.*/\1/'`
35 -HostOS=`echo "$host" | sed 's/.*-//'`
36 +HostVendor=`echo "$host" | sed -e 's/[^-]*-\([^-]*\)-.*/\1/'`
37 +HostOS=`echo "$host" | sed -e 's/[^-]*-[^-]*-\([^-]*\)\(-.*\)*/\1/'`
38 HostPlatform_CPP=`echo "$HostPlatform" | sed -e 's/\./_/g' -e 's/-/_/g'`
39 HostArch_CPP=` echo "$HostArch" | sed -e 's/\./_/g' -e 's/-/_/g'`
40 HostVendor_CPP=` echo "$HostVendor" | sed -e 's/\./_/g' -e 's/-/_/g'`
43 TargetPlatform=$target
44 TargetArch=`echo "$target" | sed 's/-.*//'`
45 -TargetVendor=`echo "$target" | sed -e 's/.*-\(.*\)-.*/\1/'`
46 -TargetOS=`echo "$target" | sed 's/.*-//'`
47 +TargetVendor=`echo "$target" | sed -e 's/[^-]*-\([^-]*\)-.*/\1/'`
48 +TargetOS=`echo "$target" | sed -e 's/[^-]*-[^-]*-\([^-]*\)\(-.*\)*/\1/'`
49 TargetPlatform_CPP=`echo "$TargetPlatform" | sed -e 's/\./_/g' -e 's/-/_/g'`
50 TargetArch_CPP=` echo "$TargetArch" | sed -e 's/\./_/g' -e 's/-/_/g'`
51 TargetVendor_CPP=` echo "$TargetVendor" | sed -e 's/\./_/g' -e 's/-/_/g'`