update credits
[LibreOffice.git] / solenv / bin / rmdir.pl
blob301cada768c3e958894aa8e82c24a3130add3d6c
2 eval 'exec perl -wS $0 ${1+"$@"}'
3 if 0;
5 # This file is part of the LibreOffice project.
7 # This Source Code Form is subject to the terms of the Mozilla Public
8 # License, v. 2.0. If a copy of the MPL was not distributed with this
9 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 # This file incorporates work covered by the following license notice:
13 # Licensed to the Apache Software Foundation (ASF) under one or more
14 # contributor license agreements. See the NOTICE file distributed
15 # with this work for additional information regarding copyright
16 # ownership. The ASF licenses this file to you under the Apache
17 # License, Version 2.0 (the "License"); you may not use this file
18 # except in compliance with the License. You may obtain a copy of
19 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 my $r_code=0;
23 if ( ! defined $ARGV[0] || "$ARGV[0]" eq "" ) {
24 print STDERR "Nothing to delete\n";
25 exit 1;
27 while ( defined $ARGV[0] ) {
28 if ( rmdir $ARGV[0] ) {
29 # exit 0;
30 } else {
31 print STDERR "ERROR removing $ARGV[0]: $!\n";
32 $r_code = 1;
34 shift @ARGV;
36 exit $r_code;