599
|
1 |
# Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
# All rights reserved.
|
|
3 |
# This component and the accompanying materials are made available
|
|
4 |
# under the terms of "Eclipse Public License v1.0"
|
|
5 |
# which accompanies this distribution, and is available
|
|
6 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
#
|
|
8 |
# Initial Contributors:
|
|
9 |
# Nokia Corporation - initial contribution.
|
|
10 |
#
|
|
11 |
# Contributors:
|
|
12 |
#
|
|
13 |
# Description:
|
|
14 |
#
|
|
15 |
|
|
16 |
use File::Path;
|
|
17 |
|
|
18 |
|
|
19 |
# THE MAIN PROGRAM SECTION
|
|
20 |
{
|
|
21 |
unless (@ARGV) {
|
|
22 |
&Usage();
|
|
23 |
}
|
|
24 |
|
|
25 |
rmtree([@ARGV]);
|
|
26 |
}
|
|
27 |
|
|
28 |
sub Usage () {
|
|
29 |
print <<ENDHERESTRING;
|
|
30 |
Usage : perl ermdir.pl list_of_directories
|
|
31 |
|
|
32 |
Removes the directories listed
|
|
33 |
ENDHERESTRING
|
|
34 |
|
|
35 |
exit 1;
|
|
36 |
}
|