Line 1... |
Line 1... |
#!/usr/bin/perl -w
|
#!/usr/bin/perl -w
|
# $Id: svn_set_ignore 547 2013-12-29 13:10:07Z mueller $
|
# $Id: svn_set_ignore 601 2014-11-07 22:44:43Z mueller $
|
#
|
#
|
# Copyright 2007-2010 by Walter F.J. Mueller
|
# Copyright 2007-2014 by Walter F.J. Mueller
|
#
|
#
|
# This program is free software; you may redistribute and/or modify it under
|
# This program is free software; you may redistribute and/or modify it under
|
# the terms of the GNU General Public License as published by the Free
|
# the terms of the GNU General Public License as published by the Free
|
# Software Foundation, either version 2, or at your option any later version.
|
# Software Foundation, either version 2, or at your option any later version.
|
#
|
#
|
Line 12... |
Line 12... |
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
# for complete details.
|
# for complete details.
|
#
|
#
|
# Revision History:
|
# Revision History:
|
# Date Rev Vers Comment
|
# Date Rev Vers Comment
|
|
# 2014-11-04 601 1.1 use 'svn info' rather /.svn check for svn >= 1.7
|
# 2010-04-26 284 1.0.1 add error check for GetOptions
|
# 2010-04-26 284 1.0.1 add error check for GetOptions
|
# 2007-06-16 56 1.0 Initial version
|
# 2007-06-16 56 1.0 Initial version
|
#
|
#
|
|
|
use 5.005; # require Perl 5.005 or higher
|
use 5.005; # require Perl 5.005 or higher
|
Line 54... |
Line 55... |
my @loc_ipat;
|
my @loc_ipat;
|
my @sum_ipat;
|
my @sum_ipat;
|
my @new_ipat;
|
my @new_ipat;
|
my %ipat;
|
my %ipat;
|
|
|
return unless -d "$dirname/.svn";
|
# skip ise directories (they have sometimes strange chars in dir names
|
|
return if $dirname =~ m|/ise/|;
|
|
# check for svn working directory
|
|
my $svn_info = `svn info $dirname 2>&1`;
|
|
return if $?;
|
|
|
print "$dirname\n";
|
print "$dirname\n";
|
open (SVN, "svn pg svn:ignore $dirname|") or die "failed to open svn pg pipe";
|
open (SVN, "svn pg svn:ignore $dirname|") or die "failed to open svn pg pipe";
|
@cur_ipat = grep /.+/, ; # prop get and drop empty lines
|
@cur_ipat = grep /.+/, ; # prop get and drop empty lines
|
close (SVN);
|
close (SVN);
|
|
|