Skip to content

Commit

Permalink
Merge commit 'e40f386' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
lstein committed Jul 18, 2011
2 parents ad890a7 + e40f386 commit 484de73
Show file tree
Hide file tree
Showing 18 changed files with 2,178 additions and 0 deletions.
58 changes: 58 additions & 0 deletions Build
@@ -0,0 +1,58 @@
#! /usr/bin/perl

use strict;
use Cwd;
use File::Basename;
use File::Spec;

sub magic_number_matches {
return 0 unless -e '_build/magicnum';
local *FH;
open FH, '_build/magicnum' or return 0;
my $filenum = <FH>;
close FH;
return $filenum == 29331;
}

my $progname;
my $orig_dir;
BEGIN {
$^W = 1; # Use warnings
$progname = basename($0);
$orig_dir = Cwd::cwd();
my $base_dir = '/home/aelnaiem/GBrowse';
if (!magic_number_matches()) {
unless (chdir($base_dir)) {
die ("Couldn't chdir($base_dir), aborting\n");
}
unless (magic_number_matches()) {
die ("Configuration seems to be out of date, please re-run 'perl Build.PL' again.\n");
}
}
unshift @INC,
(
'/home/aelnaiem/GBrowse/install_util'
);
}

close(*DATA) unless eof(*DATA); # ensure no open handles to this script

use GBrowseInstall;
Module::Build->VERSION(q{0.38});

# Some platforms have problems setting $^X in shebang contexts, fix it up here
$^X = Module::Build->find_perl_interpreter;

if (-e 'Build.PL' and not GBrowseInstall->up_to_date('Build.PL', $progname)) {
warn "Warning: Build.PL has been altered. You may need to run 'perl Build.PL' again.\n";
}

# This should have just enough arguments to be able to bootstrap the rest.
my $build = GBrowseInstall->resume (
properties => {
config_dir => '_build',
orig_dir => $orig_dir,
},
);

$build->dispatch;

0 comments on commit 484de73

Please sign in to comment.