projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e0342d5
)
save distributed files to Git when we build binary, not source
author
Ben Pfaff
<blp@gnu.org>
Thu, 18 Feb 2010 18:36:16 +0000
(10:36 -0800)
committer
Ben Pfaff
<blp@gnu.org>
Thu, 18 Feb 2010 18:36:16 +0000
(10:36 -0800)
build-pspp
patch
|
blob
|
history
diff --git
a/build-pspp
b/build-pspp
index 4b3cf01b5bd6792c2647b7a0c645c019c72ed542..d7983fd6d3c761ed28a6b736f876ba3a36ef772e 100755
(executable)
--- a/
build-pspp
+++ b/
build-pspp
@@
-253,10
+253,6
@@
EOF
$tarball = save_result ("source distribution", "pspp$build_number/_build/$tarname", 1);
save_result ("translation templates", "pspp$build_number/_build/po/pspp.pot");
$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/");
# Build user manual
start_step ("Build user manual");
run ("cd pspp$build_number && cp _build/doc/*.texi doc/");
@@
-270,6
+266,9
@@
EOF
}
if ($build_binary) {
}
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%^(?:[./])*([^/]+)/%;
start_step ("Determining $tarball target directory");
my $sample_filename = `zcat $tarball | tar tf - | head -1`;
my ($tarball_dir) = $sample_filename =~ m%^(?:[./])*([^/]+)/%;