Skip to content

Commit

Permalink
release: updated the bolt-release.pl script
Browse files Browse the repository at this point in the history
This update is to reflect the dropped CMakeLists.txt creation and the
new submodule integration of Argobots.

Signed-off-by: Shintaro Iwasaki <iwasaki@eidos.ic.i.u-tokyo.ac.jp>
  • Loading branch information
Halim Amer committed Nov 9, 2018
1 parent 0404b9b commit 0d84fd5
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions maint/bolt-release.pl
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,13 @@ sub run_cmd

# clone git repo
print("===> Cloning git repo... ");
run_cmd("git clone -b ${branch} ${git_repo} ${local_git_clone}");
run_cmd("git clone --recursive -b ${branch} ${git_repo} ${local_git_clone}");
print("done\n");

# chdirs to $local_git_clone if valid
check_git_repo($local_git_clone);
print("\n");

my $current_ver = `git show ${branch}:autogen.sh | grep BOLT_VERSION= | \
sed -e 's/^BOLT_VERSION=\\(.*\\)/\\1/g'`;
chomp $current_ver;
if ("$current_ver" ne "$version") {
print("\tWARNING: version in autogen.sh ($current_ver) does not match user version ($version)\n\n");
}

if ($append_commit_id) {
my $desc = `git describe --always ${branch}`;
chomp $desc;
Expand All @@ -137,21 +130,14 @@ sub run_cmd
run_cmd("rm -rf ${expdir}");
run_cmd("mkdir -p ${expdir}");
run_cmd("git archive ${branch} --prefix='bolt-${version}/' | tar -x -C $tdir");
print("done\n");

# Create CMakeLists.txt
print("===> Creating CMakeLists.txt in the main codebase... ");
chdir($expdir);
{
my $cmd = "./autogen.sh -r";
run_cmd($cmd);
}
run_cmd("git submodule foreach --recursive \'git archive HEAD --prefix='' | tar -x -C `echo \${toplevel}/\${path} | sed -e s/clone/${version}/`'");
print("done\n");

# Remove unnecessary files
print("===> Removing unnecessary files in the main codebase... ");
chdir($expdir);
run_cmd("find . -name .gitignore | xargs rm -rf");
run_cmd("find . -name .gitmodules | xargs rm -rf");
run_cmd("find . -name .tmp | xargs rm -rf");
print("done\n");

Expand Down

0 comments on commit 0d84fd5

Please sign in to comment.