Skip to content

Instantly share code, notes, and snippets.

@hinrik
Created January 28, 2010 20:14
Show Gist options
  • Save hinrik/289095 to your computer and use it in GitHub Desktop.
Save hinrik/289095 to your computer and use it in GitHub Desktop.
#!/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