jdk/make/jdk_generic_profile.sh
changeset 2300 103e268e2d16
parent 715 f16baef3a20e
child 4111 ffc9c33335f4
--- a/jdk/make/jdk_generic_profile.sh	Wed Jul 05 16:49:07 2017 +0200
+++ b/jdk/make/jdk_generic_profile.sh	Thu Mar 26 16:52:00 2009 -0700
@@ -174,7 +174,8 @@
    
   # Check CYGWIN (should have already been done)
   #   Assumption here is that you are in a shell window via cygwin.
-  if [ "$(echo ${PROCESSOR_IDENTIFIER} | fgrep AMD64)" != "" ] ; then
+  proc_arch=`echo "$(PROCESSOR_IDENTIFIER)" | expand | cut -d' ' -f1 | sed -e 's@x86@X86@g' -e 's@Intel64@X64@g' -e 's@em64t@X64@g' -e 's@EM64T@X64@g' -e 's@amd64@X64@g' -e 's@AMD64@X64@g' -e 's@ia64@IA64@g'`
+  if [ "${proc_arch}" = "X64" ] ; then
     windows_arch=amd64
   else
     windows_arch=i586