summaryrefslogtreecommitdiffstats
path: root/apps/build.info
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2018-11-07 11:05:17 +0100
committerRichard Levitte <levitte@openssl.org>2019-01-22 12:35:39 +0100
commit994e86a9ffd4195f08a7b0ce61bf001e3bebf891 (patch)
tree44cae698ad1520cfb4151cdf4f2110ed3ebeabfb /apps/build.info
parentac6bba6f6ea328ba22425d6f3f95847452193293 (diff)
Build: use attributes to indicate installed script classes
We have two classes of scripts to be installed, those that are installed as "normal" programs, and those that are installed as "misc" scripts. These classes are installed in different locations, so the build file templates must pay attention. Because we didn't have the tools to indicate what scripts go where, we had these scripts hard coded in the build template files, with the maintenance issues that may cause. Now that we have attributes, those can be used to classify the installed scripts, and have the build file templates simply check the attributes to know what's what. Furthermore, the 'tsget.pl' script exists both as 'tsget.pl' and 'tsget', which is done by installing a symbolic link (or copy). This link name is now given through an attribute, which results in even less hard coding in the Unix Makefile template. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/7581)
Diffstat (limited to 'apps/build.info')
-rw-r--r--apps/build.info5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/build.info b/apps/build.info
index de356874d8..0577f76c0a 100644
--- a/apps/build.info
+++ b/apps/build.info
@@ -32,7 +32,10 @@ ENDIF
GENERATE[progs.h]=progs.pl $(APPS_OPENSSL)
DEPEND[progs.h]=../configdata.pm
- SCRIPTS=CA.pl tsget.pl
+ SCRIPTS{misc}=CA.pl
SOURCE[CA.pl]=CA.pl.in
+ # linkname tells build files that a symbolic link or copy of this script
+ # without extension must be installed as well. Unix or Unix lookalike only.
+ SCRIPTS{misc,linkname=tsget}=tsget.pl
SOURCE[tsget.pl]=tsget.in
ENDIF