Commit 178a52ac authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Make the sed in more portable

parent 893a3c0a
...@@ -292,10 +292,10 @@ BuildPlatform=$build ...@@ -292,10 +292,10 @@ BuildPlatform=$build
BuildArch=`echo "$build" | sed 's/-.*//'` BuildArch=`echo "$build" | sed 's/-.*//'`
BuildVendor=`echo "$build" | sed -e 's/.*-\(.*\)-.*/\1/'` BuildVendor=`echo "$build" | sed -e 's/.*-\(.*\)-.*/\1/'`
BuildOS=`echo "$build" | sed 's/.*-//'` BuildOS=`echo "$build" | sed 's/.*-//'`
BuildPlatform_CPP=`echo "$BuildPlatform" | sed 's/\.\|-/_/g'` BuildPlatform_CPP=`echo "$BuildPlatform" | sed -e 's/\./_/g' -e 's/-/_/g'`
BuildArch_CPP=`echo "$BuildArch" | sed 's/\.\|-/_/g'` BuildArch_CPP=` echo "$BuildArch" | sed -e 's/\./_/g' -e 's/-/_/g'`
BuildVendor_CPP=`echo "$BuildVendor" | sed 's/\.\|-/_/g'` BuildVendor_CPP=` echo "$BuildVendor" | sed -e 's/\./_/g' -e 's/-/_/g'`
BuildOS_CPP=`echo "$BuildOS" | sed 's/\.\|-/_/g'` BuildOS_CPP=` echo "$BuildOS" | sed -e 's/\./_/g' -e 's/-/_/g'`
checkArch "$BuildArch" checkArch "$BuildArch"
checkVendor "$BuildVendor" checkVendor "$BuildVendor"
...@@ -305,10 +305,10 @@ HostPlatform=$host ...@@ -305,10 +305,10 @@ HostPlatform=$host
HostArch=`echo "$host" | sed 's/-.*//'` HostArch=`echo "$host" | sed 's/-.*//'`
HostVendor=`echo "$host" | sed -e 's/.*-\(.*\)-.*/\1/'` HostVendor=`echo "$host" | sed -e 's/.*-\(.*\)-.*/\1/'`
HostOS=`echo "$host" | sed 's/.*-//'` HostOS=`echo "$host" | sed 's/.*-//'`
HostPlatform_CPP=`echo "$HostPlatform" | sed 's/\.\|-/_/g'` HostPlatform_CPP=`echo "$HostPlatform" | sed -e 's/\./_/g' -e 's/-/_/g'`
HostArch_CPP=`echo "$HostArch" | sed 's/\.\|-/_/g'` HostArch_CPP=` echo "$HostArch" | sed -e 's/\./_/g' -e 's/-/_/g'`
HostVendor_CPP=`echo "$HostVendor" | sed 's/\.\|-/_/g'` HostVendor_CPP=` echo "$HostVendor" | sed -e 's/\./_/g' -e 's/-/_/g'`
HostOS_CPP=`echo "$HostOS" | sed 's/\.\|-/_/g'` HostOS_CPP=` echo "$HostOS" | sed -e 's/\./_/g' -e 's/-/_/g'`
checkArch "$HostArch" checkArch "$HostArch"
checkVendor "$HostVendor" checkVendor "$HostVendor"
...@@ -318,10 +318,10 @@ TargetPlatform=$target ...@@ -318,10 +318,10 @@ TargetPlatform=$target
TargetArch=`echo "$target" | sed 's/-.*//'` TargetArch=`echo "$target" | sed 's/-.*//'`
TargetVendor=`echo "$target" | sed -e 's/.*-\(.*\)-.*/\1/'` TargetVendor=`echo "$target" | sed -e 's/.*-\(.*\)-.*/\1/'`
TargetOS=`echo "$target" | sed 's/.*-//'` TargetOS=`echo "$target" | sed 's/.*-//'`
TargetPlatform_CPP=`echo "$TargetPlatform" | sed 's/\.\|-/_/g'` TargetPlatform_CPP=`echo "$TargetPlatform" | sed -e 's/\./_/g' -e 's/-/_/g'`
TargetArch_CPP=`echo "$TargetArch" | sed 's/\.\|-/_/g'` TargetArch_CPP=` echo "$TargetArch" | sed -e 's/\./_/g' -e 's/-/_/g'`
TargetVendor_CPP=`echo "$TargetVendor" | sed 's/\.\|-/_/g'` TargetVendor_CPP=` echo "$TargetVendor" | sed -e 's/\./_/g' -e 's/-/_/g'`
TargetOS_CPP=`echo "$TargetOS" | sed 's/\.\|-/_/g'` TargetOS_CPP=` echo "$TargetOS" | sed -e 's/\./_/g' -e 's/-/_/g'`
checkArch "$TargetArch" checkArch "$TargetArch"
checkVendor "$TargetVendor" checkVendor "$TargetVendor"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment