david_williams | b1a981c | 2007-10-23 19:55:06 +0000 | [diff] [blame] | 1 | #!/bin/sh |
nickboldt | 03a6f08 | 2019-02-12 15:17:11 -0500 | [diff] [blame] | 2 | #******************************************************************************* |
| 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_williams | b1a981c | 2007-10-23 19:55:06 +0000 | [diff] [blame] | 14 | |
| 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_williams | 5637442 | 2007-11-12 09:03:46 +0000 | [diff] [blame] | 26 | echo; |
| 27 | echo " performing $0"; |
| 28 | echo; |
| 29 | |
david_williams | aff2ea9 | 2007-10-24 07:46:10 +0000 | [diff] [blame] | 30 | # remove misc files |
| 31 | find ${oldcvsdir}/wst -name .keepme -exec rm '{}' \; |
| 32 | find ${oldcvsdir}/jst -name .keepme -exec rm '{}' \; |
david_williams | 278986c | 2007-11-01 22:37:42 +0000 | [diff] [blame] | 33 | find ${oldcvsdir}/wst -name .keepme,v -exec rm -f '{}' \; |
| 34 | find ${oldcvsdir}/jst -name .keepme,v -exec rm -f '{}' \; |
david_williams | aff2ea9 | 2007-10-24 07:46:10 +0000 | [diff] [blame] | 35 | |
david_williams | 278986c | 2007-11-01 22:37:42 +0000 | [diff] [blame] | 36 | find ${oldcvsdir}/wst -name .project -exec rm '{}' \; |
| 37 | find ${oldcvsdir}/jst -name .project -exec rm '{}' \; |
| 38 | find ${oldcvsdir}/wst -name .project,v -exec rm -f '{}' \; |
| 39 | find ${oldcvsdir}/jst -name .project,v -exec rm -f '{}' \; |
| 40 | |
| 41 | find ${oldcvsdir}/wst -depth -type d -empty -exec rmdir {} \; |
| 42 | find ${oldcvsdir}/jst -depth -type d -empty -exec rmdir {} \; |
david_williams | aff2ea9 | 2007-10-24 07:46:10 +0000 | [diff] [blame] | 43 | |
david_williams | 4e08c5c | 2007-10-23 22:32:49 +0000 | [diff] [blame] | 44 | newDir=${newcvsdir}/webtools.releng/tempmisc |
david_williams | b1a981c | 2007-10-23 19:55:06 +0000 | [diff] [blame] | 45 | |
david_williams | 4e08c5c | 2007-10-23 22:32:49 +0000 | [diff] [blame] | 46 | |
david_williams | aff2ea9 | 2007-10-24 07:46:10 +0000 | [diff] [blame] | 47 | |
david_williams | 4e08c5c | 2007-10-23 22:32:49 +0000 | [diff] [blame] | 48 | oldDir=${oldcvsdir}/wst/components |
david_williams | b1a981c | 2007-10-23 19:55:06 +0000 | [diff] [blame] | 49 | copyAndRemove $oldDir $newDir |
| 50 | |
david_williams | 4e08c5c | 2007-10-23 22:32:49 +0000 | [diff] [blame] | 51 | oldDir=${oldcvsdir}/jst/components |
david_williams | b1a981c | 2007-10-23 19:55:06 +0000 | [diff] [blame] | 52 | copyAndRemove $oldDir $newDir |
| 53 | |
david_williams | 4e08c5c | 2007-10-23 22:32:49 +0000 | [diff] [blame] | 54 | oldDir=${oldcvsdir}/org.eclipse.wtp |
david_williams | b1a981c | 2007-10-23 19:55:06 +0000 | [diff] [blame] | 55 | copyAndRemove $oldDir $newDir |
| 56 | |
david_williams | 4e08c5c | 2007-10-23 22:32:49 +0000 | [diff] [blame] | 57 | oldDir=${oldcvsdir}/wst |
david_williams | b1a981c | 2007-10-23 19:55:06 +0000 | [diff] [blame] | 58 | copyAndRemove $oldDir $newDir |
| 59 | |
david_williams | 4e08c5c | 2007-10-23 22:32:49 +0000 | [diff] [blame] | 60 | oldDir=${oldcvsdir}/jst |
david_williams | b1a981c | 2007-10-23 19:55:06 +0000 | [diff] [blame] | 61 | copyAndRemove $oldDir $newDir |
| 62 | |