X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=util%2Frmold.pl;h=b7ddecf9b0f6623429475a3945906aa544745286;hp=a14f2dc2c997fcde6eeda309e730669c67fc92d6;hb=320cfdcb658e8d6556ae9dfd902c2db1db866a6b;hpb=268ac1fc7f39507d0fb36fdb74a4600e66e0c2ba diff --git a/util/rmold.pl b/util/rmold.pl index a14f2dc2..b7ddecf9 100755 --- a/util/rmold.pl +++ b/util/rmold.pl @@ -1,10 +1,11 @@ -#! /usr/bin/perl -w +#!/usr/bin/env perl -w -# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. +# Copyright (C) 1995, 1996, 1997, 2007, 2008, 2009, 2010, 2011 Free +# Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or +# the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, @@ -13,8 +14,7 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# along with this program. If not, see . # This script is a very lame hack to remove local files, until the @@ -46,7 +46,7 @@ sub procdir local(@lcfiles, @lcdirs, %files, @fl); print STDERR "Processing directory '$dir':\n" if $verbose; - + opendir(DH, $dir) || die("Cannot open $dir: $!\n"); @lcfiles = (); @lcdirs = ();