aboutsummaryrefslogtreecommitdiff
path: root/Configurations
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-03-08 11:49:26 +0100
committerRichard Levitte <levitte@openssl.org>2016-03-08 12:32:00 +0100
commit54bb8f74bd3931f801472e86c481c80f868c2b91 (patch)
tree116fa3c0f2d957cc32cdf126d3dbb102f2dc52a3 /Configurations
parent69633bb4c96b5b0168cd3ee4ea2f00821cb52162 (diff)
downloadopenssl-54bb8f74bd3931f801472e86c481c80f868c2b91.zip
openssl-54bb8f74bd3931f801472e86c481c80f868c2b91.tar.gz
openssl-54bb8f74bd3931f801472e86c481c80f868c2b91.tar.bz2
Fix configurations such as 'dist' and tar building
For config targets such as 'dist', which doesn't have a BASE template, we still need to have a default build scheme. Additionally, the unified Makefile template's target 'tar' wasn't quite as flexible as the unixmake one. Finally, .travis-create-release.sh can be somewhat simplified now that it builds with the unified build scheme. Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'Configurations')
-rw-r--r--Configurations/00-base-templates.conf3
-rw-r--r--Configurations/unix-Makefile.tmpl8
2 files changed, 8 insertions, 3 deletions
diff --git a/Configurations/00-base-templates.conf b/Configurations/00-base-templates.conf
index b7dcde0..026cdab 100644
--- a/Configurations/00-base-templates.conf
+++ b/Configurations/00-base-templates.conf
@@ -35,6 +35,9 @@
shared_ldflag => "",
shared_rcflag => "",
shared_extension => "",
+
+ build_scheme => [ "unified", "unix" ],
+ build_file => "Makefile",
},
BASE_common => {
diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
index 226f5bd..9f4c1f2 100644
--- a/Configurations/unix-Makefile.tmpl
+++ b/Configurations/unix-Makefile.tmpl
@@ -660,9 +660,11 @@ tags TAGS: FORCE
# Release targets (note: only available on Unix) #####################
+TAR_COMMAND=$(TAR) $(TARFLAGS) --owner 0 --group 0 -cvf -
+PREPARE_CMD=:
tar:
TMPDIR=/var/tmp/openssl-copy.$$$$; \
- DISTDIR=openssl-$(VERSION); \
+ DISTDIR=$(NAME); \
mkdir -p $$TMPDIR/$$DISTDIR; \
(cd $(SRCDIR); \
git ls-tree -r --name-only --full-tree HEAD \
@@ -671,11 +673,11 @@ tar:
cp $$F $$TMPDIR/$$DISTDIR/$$F; \
done); \
(cd $$TMPDIR; \
- [ -n "$(PREPARE_CMD)" ] && $(PREPARE_CMD); \
+ $(PREPARE_CMD); \
find $$TMPDIR/$$DISTDIR -type d -print | xargs chmod 755; \
find $$TMPDIR/$$DISTDIR -type f -print | xargs chmod a+r; \
find $$TMPDIR/$$DISTDIR -type f -perm -0100 -print | xargs chmod a+x; \
- $(TAR) $(TARFLAGS) --owner 0 --group 0 -cvf - $$DISTDIR) \
+ $(TAR_COMMAND) $$DISTDIR) \
| (cd $(SRCDIR); gzip --best > $(TARFILE).gz); \
rm -rf $$TMPDIR
cd $(SRCDIR); ls -l $(TARFILE).gz