blob: ca9ed1c3e8e9098b34a6cac1ff2803ff629b8852 [file] [log] [blame]
# Copyright (c) 2007, 2019 IBM Corporation and others.
# This program and the accompanying materials
# are made available under the terms of the Eclipse Public License 2.0
# which accompanies this distribution, and is available at
# SPDX-License-Identifier: EPL-2.0
# Contributors:
# IBM Corporation - initial API and implementation
# 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
echo " performing $0";
# 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 {} \;
copyAndRemove $oldDir $newDir
copyAndRemove $oldDir $newDir
copyAndRemove $oldDir $newDir
copyAndRemove $oldDir $newDir
copyAndRemove $oldDir $newDir