2012-06-06 02:19:27 +08:00
|
|
|
#!/usr/bin/env perl
|
2020-03-23 21:44:29 +08:00
|
|
|
#***************************************************************************
|
|
|
|
# _ _ ____ _
|
|
|
|
# Project ___| | | | _ \| |
|
|
|
|
# / __| | | | |_) | |
|
|
|
|
# | (__| |_| | _ <| |___
|
|
|
|
# \___|\___/|_| \_\_____|
|
|
|
|
#
|
|
|
|
# Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
|
|
#
|
|
|
|
# This software is licensed as described in the file COPYING, which
|
|
|
|
# you should have received as part of this distribution. The terms
|
2020-11-04 21:02:01 +08:00
|
|
|
# are also available at https://curl.se/docs/copyright.html.
|
2020-03-23 21:44:29 +08:00
|
|
|
#
|
|
|
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
# copies of the Software, and permit persons to whom the Software is
|
|
|
|
# furnished to do so, under the terms of the COPYING file.
|
|
|
|
#
|
|
|
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
# KIND, either express or implied.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: curl
|
2022-05-17 17:16:50 +08:00
|
|
|
#
|
2020-03-23 21:44:29 +08:00
|
|
|
###########################################################################
|
2012-06-06 02:19:27 +08:00
|
|
|
# Check that given arguments do not exist on filesystem.
|
|
|
|
my $code = 0;
|
|
|
|
if ($#ARGV < 0) {
|
|
|
|
print "Usage: $0 file1 [fileN]\n";
|
|
|
|
exit 2;
|
|
|
|
}
|
|
|
|
while (@ARGV) {
|
|
|
|
my $fname = shift @ARGV;
|
|
|
|
if (-e $fname) {
|
|
|
|
print "Found '$fname' when not supposed to exist.\n";
|
|
|
|
$code = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
exit $code;
|