aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xproject3
-rw-r--r--reproduce/analysis/make/initialize.mk8
2 files changed, 5 insertions, 6 deletions
diff --git a/project b/project
index d14e3b0..cc2140f 100755
--- a/project
+++ b/project
@@ -92,6 +92,9 @@ Project 'make' special features.
uploaded to servers like 'arXiv.org'.
./project make dist-lzip Similar to 'dist', but compress to '.tar.lz'.
./project make dist-zip Similar to 'dist', but compress to '.zip'.
+ ./project make dist-software Build a .tar.gz tarball containing all
+ software source tarballs necessary for the
+ project.
With the options below you can modify the default behavior.
Configure options:
diff --git a/reproduce/analysis/make/initialize.mk b/reproduce/analysis/make/initialize.mk
index acc527d..b2185e2 100644
--- a/reproduce/analysis/make/initialize.mk
+++ b/reproduce/analysis/make/initialize.mk
@@ -380,19 +380,15 @@ dist-zip: $(project-package-contents)
# Package the software tarballs.
dist-software:
curdir=$$(pwd)
+ dirname=software-$(project-commit-hash)
cd $(BDIR)
- if [ -d .git ]; then
- dirname="software-$$(git describe --dirty --always --long)"
- else
- dirname="software-NOGIT";
- fi
mkdir $$dirname
cp -L software/tarballs/* $$dirname/
tar -cf $$dirname.tar $$dirname
gzip -f --best $$dirname.tar
rm -rf $$dirname
cd $$curdir
- mv $(BDIR)/$$dir.tar.gz ./
+ mv $(BDIR)/$$dirname.tar.gz ./