blob: 1fe27544ca251b7d340aaf50e4c9f690c4fd43b2 [file] [log] [blame]
#!/bin/bash
baseArch=$1
newArch=$2
moves(){
for f in $(find -type d); do
tofile=$(echo $f | sed "s/$baseArch/$newArch/")
if [ $tofile != $f ]; then
cp -pfr $f $tofile
fi
done
for f in $(find -type f); do
tofile=$(echo $f | sed "s/$baseArch/$newArch/")
if [ $tofile != $f ]; then
cp -pfr $f $tofile
rm -fr $f
fi
done
}
cd org.eclipse.equinox.launcher.gtk.linux.$newArch
moves
cd ..
cd org.eclipse.core.filesystem.linux.$newArch
moves
cd ..
cd org.eclipse.swt.gtk.linux.$newArch
moves
cd ..