Don't distribute team internal config targets
authorRichard Levitte <levitte@openssl.org>
Mon, 2 Apr 2018 08:24:33 +0000 (10:24 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 19 Apr 2018 13:20:52 +0000 (15:20 +0200)
Configurations/90-team.conf isn't for public consumption, so we rename
it to 90-team.norelease.conf and make sure 'make dist' and 'make tar'
don't include it in the tarball.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6016)

Configurations/90-team.norelease.conf [moved from Configurations/90-team.conf with 97% similarity]
Configurations/dist.conf [new file with mode: 0644]
Configurations/unix-Makefile.tmpl

similarity index 97%
rename from Configurations/90-team.conf
rename to Configurations/90-team.norelease.conf
index 0a83c22aaa1ebcc696110e78b728bb72c28def05..c7f709538673f5d3b2318fd34fa47fb47268854f 100644 (file)
         shared_cflag     => "-fPIC",
         shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
     },
-    "dist" => {
-        cc               => "cc",
-        cflags           => "-O",
-        thread_scheme    => "(unknown)",
-    },
     "debug-test-64-clang" => {
         inherit_from     => [ "x86_64_asm" ],
         cc               => "clang",
diff --git a/Configurations/dist.conf b/Configurations/dist.conf
new file mode 100644 (file)
index 0000000..4f58dad
--- /dev/null
@@ -0,0 +1,12 @@
+## -*- mode: perl; -*-
+## Build configuration targets for openssl-team members
+
+# This is to support 'make dist'
+%targets = (
+    "dist" => {
+        inherit_from     => [ 'BASE_unix' ],
+        cc               => "cc",
+        cflags           => "-O",
+        thread_scheme    => "(unknown)",
+    },
+);
index 1bfaa97af162f856bd349d5597735776df4f210b..034d93e653d232058aa58503f35e940101bb000b 100644 (file)
@@ -664,8 +664,10 @@ tar:
        DISTDIR=$(NAME); \
        mkdir -p $$TMPDIR/$$DISTDIR; \
        (cd $(SRCDIR); \
+        excl_re="^(fuzz/corpora|Configurations/.*\.norelease\.conf)"; \
+        echo "$$excl_re"; \
         git ls-tree -r --name-only --full-tree HEAD \
-         | grep -v '^fuzz/corpora' \
+        | egrep -v "$$excl_re" \
         | while read F; do \
               mkdir -p $$TMPDIR/$$DISTDIR/`dirname $$F`; \
               cp $$F $$TMPDIR/$$DISTDIR/$$F; \