blob: e16bb392dc1d9a436a1a503e9a4c5fbf9df57cc3 [file] [log] [blame]
#!/bin/sh
# this file is to run last, and just "hits" all major directories in old structure.
# There actually should be nothing copies here, unless it's some stray file such as
# a .project file under a directory ... but, just wanted to be complete.
# plus, it has the pleasent side effect of removing all directories, just for easy
# confirmation that all has been accounted for. It has to be ran last, naturally
# (or else it would simply copy everything to tempmisc).
. mainparams.shsource
. copyAndRemove.sh
echo;
echo " performing $0";
echo;
# remove misc files
find ${oldcvsdir}/wst -name .keepme -exec rm '{}' \;
find ${oldcvsdir}/jst -name .keepme -exec rm '{}' \;
find ${oldcvsdir}/wst -name .keepme,v -exec rm -f '{}' \;
find ${oldcvsdir}/jst -name .keepme,v -exec rm -f '{}' \;
find ${oldcvsdir}/wst -name .project -exec rm '{}' \;
find ${oldcvsdir}/jst -name .project -exec rm '{}' \;
find ${oldcvsdir}/wst -name .project,v -exec rm -f '{}' \;
find ${oldcvsdir}/jst -name .project,v -exec rm -f '{}' \;
find ${oldcvsdir}/wst -depth -type d -empty -exec rmdir {} \;
find ${oldcvsdir}/jst -depth -type d -empty -exec rmdir {} \;
newDir=${newcvsdir}/webtools.releng/tempmisc
oldDir=${oldcvsdir}/wst/components
copyAndRemove $oldDir $newDir
oldDir=${oldcvsdir}/jst/components
copyAndRemove $oldDir $newDir
oldDir=${oldcvsdir}/org.eclipse.wtp
copyAndRemove $oldDir $newDir
oldDir=${oldcvsdir}/wst
copyAndRemove $oldDir $newDir
oldDir=${oldcvsdir}/jst
copyAndRemove $oldDir $newDir