[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.2a1-17-gc2c30a6

Service Account noreply at mpich.org
Mon Sep 22 11:04:45 CDT 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".

The branch, master has been updated
       via  c2c30a614da6bb4a9c2a39e9cf9bc3246e6ac3e8 (commit)
      from  09930cc20a8532a2cfd9f7e022787bf40af8286f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/c2c30a614da6bb4a9c2a39e9cf9bc3246e6ac3e8

commit c2c30a614da6bb4a9c2a39e9cf9bc3246e6ac3e8
Author: Pavan Balaji <balaji at anl.gov>
Date:   Mon Sep 22 00:25:12 2014 -0500

    Cleanup release.pl to remove unnecessary code.
    
    The release.pl code was essentially a simple svn to git conversion.
    With our current testing model, some of this code is irrelevant.
    
    Signed-off-by: Junchao Zhang <jczhang at mcs.anl.gov>

diff --git a/maint/release.pl b/maint/release.pl
index 8dddd65..004301a 100755
--- a/maint/release.pl
+++ b/maint/release.pl
@@ -3,13 +3,6 @@
 # (C) 2008 by Argonne National Laboratory.
 #     See COPYRIGHT in top-level directory.
 #
-#
-# Known limitations:
-#
-#    1. ABI mismatch checks are run using a git diff in mpi.h.in and
-#    the binding directory. This can come up with false positives, and
-#    is only meant to be a worst-case guess.
-#
 
 use strict;
 use warnings;
@@ -20,17 +13,12 @@ use File::Temp qw( tempdir );
 
 my $arg = 0;
 my $branch = "";
-my $pbranch = "";
 my $version = "";
 my $append_commit_id;
-my $since = "";
 my $root = cwd();
 my $with_autoconf = "";
 my $with_automake = "";
-my $remote_git_repo = "";
-
-# Default to MPICH
-my $prefix = "mpich";
+my $git_repo = "";
 
 my $logfile = "release.log";
 
@@ -39,14 +27,10 @@ sub usage
     print "Usage: $0 [OPTIONS]\n\n";
     print "OPTIONS:\n";
 
+    print "\t--git-repo           path to root of the git repository (required)\n";
     print "\t--branch             git branch to be packaged (required)\n";
-    print "\t--pbranch            git previous version branch for ABI compliance (required)\n";
     print "\t--version            tarball version (required)\n";
-    print "\t--remote-git-repo    path to root of the git repository (required)\n";
-
-    print "\t--prefix             package prefix to use (optional)\n";
-    print "\t--append-commit-id   append git commit ID (optional)\n";
-    print "\t--newer-than         date (optional)\n";
+    print "\t--append-commit-id   append git commit description (optional)\n";
 
     print "\n";
 
@@ -137,14 +121,11 @@ sub run_cmd
 
 GetOptions(
     "branch=s" => \$branch,
-    "pbranch=s" => \$pbranch,
-    "prefix:s"  => \$prefix,
     "version=s" => \$version,
     "append-commit-id!" => \$append_commit_id,
-    "newer-than=s" => \$since,
     "with-autoconf" => \$with_autoconf,
     "with-automake" => \$with_automake,
-    "remote-git-repo=s" => \$remote_git_repo,
+    "git-repo=s" => \$git_repo,
     "help"     => \&usage,
 
     # old deprecated args, retained with usage() to help catch non-updated cron
@@ -156,7 +137,7 @@ if (scalar(@ARGV) != 0) {
     usage();
 }
 
-if (!$branch || !$version || !$pbranch) {
+if (!$branch || !$version) {
     usage();
 }
 
@@ -178,50 +159,31 @@ print("\n");
 
 
 my $tdir = tempdir(CLEANUP => 1);
-my $local_git_clone = "${tdir}/${prefix}-clone";
+my $local_git_clone = "${tdir}/mpich-clone";
 
 
 # clone git repo
 print("===> Cloning git repo... ");
-run_cmd("git clone ${remote_git_repo} ${local_git_clone}");
+run_cmd("git clone ${git_repo} ${local_git_clone}");
 print("done\n");
 
 # chdirs to $local_git_clone if valid
 check_git_repo($local_git_clone);
 print("\n");
 
-if ($since) {
-    # If there have been no commits in the past some amount of time,
-    # do not create a tarball
-    if (!(`git log --since='$since' ${branch}`)) {
-	chdir("${tdir}/..");
-	print "No recent commits found... aborting\n";
-	exit;
-    }
-}
-
 my $current_ver = `git show ${branch}:maint/version.m4 | grep MPICH_VERSION_m4 | \
                    sed -e 's/^.*\\[MPICH_VERSION_m4\\],\\[\\(.*\\)\\].*/\\1/g'`;
 if ("$current_ver" ne "$version\n") {
     print("\tWARNING: Version mismatch\n\n");
 }
 
-if ($pbranch) {
-    # Check diff
-    my $d = `git diff ${pbranch}:src/include/mpi.h.in ${branch}:src/include/mpi.h.in`;
-    $d .= `git diff ${pbranch}:src/binding ${branch}:src/binding`;
-    if ("$d" ne "") {
-	print("\tWARNING: ABI mismatch\n\n");
-    }
-}
-
 if ($append_commit_id) {
     my $desc = `git describe --always ${branch}`;
     chomp $desc;
     $version .= "-${desc}";
 }
 
-my $expdir = "${tdir}/${prefix}-${version}";
+my $expdir = "${tdir}/mpich-${version}";
 
 # Clean up the log file
 system("rm -f ${root}/$logfile");
@@ -230,7 +192,7 @@ system("rm -f ${root}/$logfile");
 print("===> Exporting code from git... ");
 run_cmd("rm -rf ${expdir}");
 run_cmd("mkdir -p ${expdir}");
-run_cmd("git archive ${branch} --prefix='${prefix}-${version}/' | tar -x -C $tdir");
+run_cmd("git archive ${branch} --prefix='mpich-${version}/' | tar -x -C $tdir");
 print("done\n");
 
 print("===> Create release date and version information... ");
@@ -307,10 +269,10 @@ run_cmd("rm -f users-guide.blg users-guide.toc users-guide.aux users-guide.bbl u
 print("done\n");
 
 # Create the main tarball
-print("===> Creating the final ${prefix} tarball... ");
+print("===> Creating the final mpich tarball... ");
 chdir("${tdir}");
-run_cmd("tar -czvf ${prefix}-${version}.tar.gz ${prefix}-${version}");
-run_cmd("cp -a ${prefix}-${version}.tar.gz ${root}/");
+run_cmd("tar -czvf mpich-${version}.tar.gz mpich-${version}");
+run_cmd("cp -a mpich-${version}.tar.gz ${root}/");
 print("done\n");
 
 # Create the hydra tarball

-----------------------------------------------------------------------

Summary of changes:
 maint/release.pl |   62 ++++++++++-------------------------------------------
 1 files changed, 12 insertions(+), 50 deletions(-)


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list