Created
January 28, 2010 20:14
-
-
Save hinrik/289095 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
my $file = 'lib/Hailo.pm'; | |
my $old = qx"git rev-parse HEAD:$file 2>/dev/null"; | |
my $new = qx"git rev-parse :$file 2>/dev/null"; | |
if (($? >> 8) != 0 || $old ne $new) { | |
$ENV{PERL_UNICODE} = 'O'; | |
system "pod2text $file > README"; | |
system "git add README"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment