$tarball = save_result ("source distribution", "pspp$build_number/_build/$tarname", 1);
save_result ("translation templates", "pspp$build_number/_build/po/pspp.pot");
- # Save distributed files in Git.
- start_step ("Save distributed files in Git");
- run ("GIT_DIR=$topdir/.git $topdir/git-import-tar $resultsdir/$tarname refs/builds/$build_number/dist", "git-dist");
-
# Build user manual
start_step ("Build user manual");
run ("cd pspp$build_number && cp _build/doc/*.texi doc/");
}
if ($build_binary) {
+ start_step ("Save tarball to Git");
+ run ("GIT_DIR=$topdir/.git $topdir/git-import-tar $tarball refs/builds/$build_number/dist", "git-dist");
+
start_step ("Determining $tarball target directory");
my $sample_filename = `zcat $tarball | tar tf - | head -1`;
my ($tarball_dir) = $sample_filename =~ m%^(?:[./])*([^/]+)/%;