From 4981afd55adae4c3fb36d2c4dfc5341a632dcc11 Mon Sep 17 00:00:00 2001 From: David Brown Date: Fri, 1 Jul 2016 18:19:55 +0100 Subject: [PATCH] Pickup of latest buildall.pl working. --- src/tools/make/checksumtest.sh | 7 +++++++ src/tools/make/postpush.pl | 10 +++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/tools/make/checksumtest.sh b/src/tools/make/checksumtest.sh index 84a333d5..47926771 100644 --- a/src/tools/make/checksumtest.sh +++ b/src/tools/make/checksumtest.sh @@ -1,4 +1,11 @@ # Checksum tests +# +# Checksums object binaries (*.o) and compares with previous +# checksum for this branch. +# +# Note: OPC.o and OPM.o are omitted as they both have text string constants +# that include the build date. + md5=md5 if which md5sum >/dev/null 2>&1; then md5=md5sum; fi diff --git a/src/tools/make/postpush.pl b/src/tools/make/postpush.pl index 954d604e..e2c275d9 100755 --- a/src/tools/make/postpush.pl +++ b/src/tools/make/postpush.pl @@ -9,6 +9,7 @@ use POSIX "strftime"; use CGI qw(:standard escapeHTML); use JSON; + sub writelog { my ($msg) = @_; @@ -27,20 +28,15 @@ my $name = $postdata->{'head_commit'}->{'author'}->{'name'}; my $branch = $ref; $branch =~ s'^.*\/''; my $repo = $url; $repo =~ s'^.*\/''; -#my $repo="repo"; my $branch="branch"; my $name="name"; - writelog "Post push github web hook for repository $repo, branch $branch, name $name."; my $child = fork; if (not defined $child) {die "Fork failed.";} if ($child) { - # parent process - writelog "Started buildall, pid = $child."; + writelog "Started buildall, pid = $child."; # parent process } else { - # child process - close(STDIN); close(STDOUT); close(STDERR); - chdir "/var/lib/nethserver/ibay/githubhook"; + close(STDIN); close(STDOUT); close(STDERR); # child process unlink "buildall.pl"; system 'wget https://raw.githubusercontent.com/vishaps/voc/v2docs/src/tools/make/buildall.pl'; exec 'perl buildall.pl >/tmp/buildall.log';