From 7bcd285e98c789c3f606beed5ba8f875ca976df2 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Mon, 25 Aug 2008 12:55:07 +0000 Subject: [PATCH] Don't save the old .hgignore file This commit was SVN r19399. --- contrib/hg/build-hgignore.pl | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/contrib/hg/build-hgignore.pl b/contrib/hg/build-hgignore.pl index 68acaf1330..4ada6a403a 100755 --- a/contrib/hg/build-hgignore.pl +++ b/contrib/hg/build-hgignore.pl @@ -51,15 +51,9 @@ static-components.h # Start at the top level process("."); -# If there's an old .hgignore, save it -if (-f ".hgignore") { - my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = - localtime(time); - my $new_name = sprintf(".hgignore.%04d%02d%02d-%02d%02d", - $year + 1900, $mon + 1, $mday, $hour, $min); - rename(".hgignore", $new_name) || - die "Unable to rename old .hgignore file: $!"; -} +# If there's an old .hgignore, delete it +unlink(".hgignore") + if (-f ".hgignore"); # Write the new one open(FILE, ">.hgignore");