Update the hgignore script
This commit was SVN r17430.
Этот коммит содержится в:
родитель
6d75691de3
Коммит
45ea7230ad
@ -41,7 +41,6 @@ install-sh
|
|||||||
aclocal.m4
|
aclocal.m4
|
||||||
autom4te.cache
|
autom4te.cache
|
||||||
Makefile
|
Makefile
|
||||||
Makefile.in
|
|
||||||
static-components.h
|
static-components.h
|
||||||
*~
|
*~
|
||||||
*\\\#/;
|
*\\\#/;
|
||||||
@ -73,19 +72,19 @@ exit(0);
|
|||||||
sub process {
|
sub process {
|
||||||
my $dir = shift;
|
my $dir = shift;
|
||||||
|
|
||||||
|
# Ensure we're in a svn-controlled directory
|
||||||
|
return
|
||||||
|
if (! -d "$dir/.svn");
|
||||||
|
|
||||||
# Look at the svn:ignore property for this directory
|
# Look at the svn:ignore property for this directory
|
||||||
my $svn_ignore = `svn pg svn:ignore $dir`;
|
my $svn_ignore = `svn pg svn:ignore $dir 2> /dev/null`;
|
||||||
|
# If svn failed, bail on this directory.
|
||||||
|
return
|
||||||
|
if ($? != 0);
|
||||||
|
|
||||||
chomp($svn_ignore);
|
chomp($svn_ignore);
|
||||||
if ($svn_ignore ne "") {
|
if ($svn_ignore ne "") {
|
||||||
print "Found svn:ignore in $dir\n";
|
print "Found svn:ignore in $dir\n";
|
||||||
# my $formatted_dir = $dir;
|
|
||||||
# if ($formatted_dir eq ".") {
|
|
||||||
# $formatted_dir = "";
|
|
||||||
# } else {
|
|
||||||
# $formatted_dir =~ s/^\.\///;
|
|
||||||
# $formatted_dir .= "/";
|
|
||||||
# }
|
|
||||||
|
|
||||||
foreach my $line (split(/\n/, $svn_ignore)) {
|
foreach my $line (split(/\n/, $svn_ignore)) {
|
||||||
chomp($line);
|
chomp($line);
|
||||||
$line =~ s/^\.\///;
|
$line =~ s/^\.\///;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user