From 2232d2cdf3114428aff0b5c3e4b70fea6b7fcb49 Mon Sep 17 00:00:00 2001 From: Andrew Overholt Date: Jul 24 2008 20:35:04 +0000 Subject: More non-upstream arch fixes. --- diff --git a/eclipse.spec b/eclipse.spec index 0330472..3aad8c3 100644 --- a/eclipse.spec +++ b/eclipse.spec @@ -418,16 +418,16 @@ sed --in-place "s/$swt_frag_ver_s390x/$swt_frag_ver/g" plugins/org.eclipse.swt.g sed -i "s/\(rootFileslinux_gtk_\)ppc64/\1ppc128/g" \ features/org.eclipse.equinox.executable/target.build.xml -# Move all of the s390x directories and files to ppc64 or sparc{,64} or alpha dirs and replace +# Copy all of the s390x directories and files to ppc64 or sparc{,64} or alpha dirs and replace # the s390x strings with ppc64, etc. %ifarch ppc64 sparc sparcv9 sparc64 alpha cp -rp features/org.eclipse.platform/about_files/linux.gtk.{x86,%{_arch}} for f in $(find -name \*s390x\*); do tofile=$(echo $f | sed "s/s390x/%{_arch}/") - for g in $(find -type f $f); do - sed -in "s/s390x/%{_arch}/g" $g + cp -rp $f $tofile + for g in $(find $tofile -type f); do + sed -i "s/s390x/%{_arch}/g" $g done - mv $f $tofile done OLDIFS=$IFS IFS='