r77949 - /trunk/dh-make-perl/lib/DhMakePerl/Command/make.pm

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Thu Jul 28 12:32:08 UTC 2011


Author: dmn
Date: Thu Jul 28 12:32:05 2011
New Revision: 77949

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=77949
Log:
when creating the git repostory, create .gitignore for ignoring .pc directory

Modified:
    trunk/dh-make-perl/lib/DhMakePerl/Command/make.pm

Modified: trunk/dh-make-perl/lib/DhMakePerl/Command/make.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/lib/DhMakePerl/Command/make.pm?rev=77949&op=diff
==============================================================================
--- trunk/dh-make-perl/lib/DhMakePerl/Command/make.pm (original)
+++ trunk/dh-make-perl/lib/DhMakePerl/Command/make.pm Thu Jul 28 12:32:05 2011
@@ -612,6 +612,13 @@
     $git->command( qw( checkout -b master upstream ) );
     $git->command( 'add', 'debian' );
     $git->command( 'commit', '-m', 'Initial packaging by dh-make-perl' );
+    open my $gitignore, '>',
+        File::Spec->catfile( $self->maindir, 'gitignore' )
+        or die "Unable to open .gitignore: $!";
+    print $gitignore, "/.pc/\n";
+    close $gitignore;
+    $git->command( add => '.gitignore' );
+    $git->command( commit => -m => 'add default .gitignore' );
     $git->command(
         qw( remote add origin ),
         sprintf( "ssh://git.debian.org/git/pkg-perl/packages/%s.git",




More information about the Pkg-perl-cvs-commits mailing list