blob: ca9ed1c3e8e9098b34a6cac1ff2803ff629b8852 [file] [log] [blame]
david_williamsb1a981c2007-10-23 19:55:06 +00001#!/bin/sh
nickboldt03a6f082019-02-12 15:17:11 -05002#*******************************************************************************
3# Copyright (c) 2007, 2019 IBM Corporation and others.
4# This program and the accompanying materials
5# are made available under the terms of the Eclipse Public License 2.0
6# which accompanies this distribution, and is available at
7# https://www.eclipse.org/legal/epl-2.0/
8#
9# SPDX-License-Identifier: EPL-2.0
10#
11# Contributors:
12# IBM Corporation - initial API and implementation
13#*******************************************************************************
david_williamsb1a981c2007-10-23 19:55:06 +000014
15# this file is to run last, and just "hits" all major directories in old structure.
16# There actually should be nothing copies here, unless it's some stray file such as
17# a .project file under a directory ... but, just wanted to be complete.
18# plus, it has the pleasent side effect of removing all directories, just for easy
19# confirmation that all has been accounted for. It has to be ran last, naturally
20# (or else it would simply copy everything to tempmisc).
21
22. mainparams.shsource
23
24. copyAndRemove.sh
25
david_williams56374422007-11-12 09:03:46 +000026echo;
27echo " performing $0";
28echo;
29
david_williamsaff2ea92007-10-24 07:46:10 +000030# remove misc files
31find ${oldcvsdir}/wst -name .keepme -exec rm '{}' \;
32find ${oldcvsdir}/jst -name .keepme -exec rm '{}' \;
david_williams278986c2007-11-01 22:37:42 +000033find ${oldcvsdir}/wst -name .keepme,v -exec rm -f '{}' \;
34find ${oldcvsdir}/jst -name .keepme,v -exec rm -f '{}' \;
david_williamsaff2ea92007-10-24 07:46:10 +000035
david_williams278986c2007-11-01 22:37:42 +000036find ${oldcvsdir}/wst -name .project -exec rm '{}' \;
37find ${oldcvsdir}/jst -name .project -exec rm '{}' \;
38find ${oldcvsdir}/wst -name .project,v -exec rm -f '{}' \;
39find ${oldcvsdir}/jst -name .project,v -exec rm -f '{}' \;
40
41find ${oldcvsdir}/wst -depth -type d -empty -exec rmdir {} \;
42find ${oldcvsdir}/jst -depth -type d -empty -exec rmdir {} \;
david_williamsaff2ea92007-10-24 07:46:10 +000043
david_williams4e08c5c2007-10-23 22:32:49 +000044newDir=${newcvsdir}/webtools.releng/tempmisc
david_williamsb1a981c2007-10-23 19:55:06 +000045
david_williams4e08c5c2007-10-23 22:32:49 +000046
david_williamsaff2ea92007-10-24 07:46:10 +000047
david_williams4e08c5c2007-10-23 22:32:49 +000048oldDir=${oldcvsdir}/wst/components
david_williamsb1a981c2007-10-23 19:55:06 +000049copyAndRemove $oldDir $newDir
50
david_williams4e08c5c2007-10-23 22:32:49 +000051oldDir=${oldcvsdir}/jst/components
david_williamsb1a981c2007-10-23 19:55:06 +000052copyAndRemove $oldDir $newDir
53
david_williams4e08c5c2007-10-23 22:32:49 +000054oldDir=${oldcvsdir}/org.eclipse.wtp
david_williamsb1a981c2007-10-23 19:55:06 +000055copyAndRemove $oldDir $newDir
56
david_williams4e08c5c2007-10-23 22:32:49 +000057oldDir=${oldcvsdir}/wst
david_williamsb1a981c2007-10-23 19:55:06 +000058copyAndRemove $oldDir $newDir
59
david_williams4e08c5c2007-10-23 22:32:49 +000060oldDir=${oldcvsdir}/jst
david_williamsb1a981c2007-10-23 19:55:06 +000061copyAndRemove $oldDir $newDir
62