Skip to content

Commit

Permalink
Packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Kegler authored and Jeffrey Kegler committed Apr 2, 2012
1 parent 8ff0421 commit 7aa2299
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bump_version
Expand Up @@ -4,6 +4,8 @@ use 5.010;
use strict;
use warnings FATAL => 'all';
use autodie;
use English qw( -no_match_vars );
use IPC::Cmd;

chomp(my $LATEST = qx(grep '^[0-9]' r2/Changes | head -1 | awk '{print \$1}'));

Expand All @@ -26,3 +28,9 @@ for my $versioned_file (@versioned_files) {
open my $out, '>', $versioned_file;
print $out $file;
} ## end for my $versioned_file (@versioned_files)

chdir 'r2';
die qq{"perl Build.PL" failed: $!}
if not IPC::Cmd::run( command => [$EXECUTABLE_NAME, 'Build.PL'], verbose => 1 );
die qq{"./Build distmeta" failed: $!}
if not IPC::Cmd::run( command => ['./Build', 'distmeta'], verbose => 1 );
1 change: 1 addition & 0 deletions r2/Changes
Expand Up @@ -15,6 +15,7 @@

Revision history for Marpa::R2

0.001_032 Mon Apr 2 08:25:13 PDT 2012
0.001_031 Fri Mar 30 22:42:25 PDT 2012
0.001_030 Sun Mar 25 20:10:31 PDT 2012
0.001_029 Thu Mar 22 16:16:08 PDT 2012
Expand Down
6 changes: 6 additions & 0 deletions r2/inc/Marpa/R2/Build_Me.pm
Expand Up @@ -307,9 +307,15 @@ sub do_libmarpa {
or die "print failed: $ERRNO";
}
} ## end else [ if ( not -r 'stamp-h1' ) ]

if ( $self->verbose() ) {
print "Making libmarpa: Start\n" or die "Cannot print: $ERRNO";
}

# If 'touch' does not exist, the automake-generated Makefile
# will fail anyway.
die qq{"touch api.info" failed: $!}
if not IPC::Cmd::run( command => ['touch', 'api.info'], verbose => 1 );
die 'Making libmarpa: make Failure'
if not IPC::Cmd::run( command => ['make'], verbose => 1 );

Expand Down

0 comments on commit 7aa2299

Please sign in to comment.