summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Following the license change, modify the boilerplates in util/, tools/Richard Levitte2018-12-061-1/+1
| | | | | Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/7766)
* Update copyright yearMatt Caswell2018-03-201-1/+1
| | | | | Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5689)
* Make "make variables" config attributes for overridable flagsRichard Levitte2018-03-081-1/+1
| | | | | | | | | | | | | | | | | | | | | With the support of "make variables" comes the possibility for the user to override them. However, we need to make a difference between defaults that we use (and that should be overridable by the user) and flags that are crucial for building OpenSSL (should not be overridable). Typically, overridable flags are those setting optimization levels, warnings levels, that kind of thing, while non-overridable flags are, for example, macros that indicate aspects of how the config target should be treated, such as L_ENDIAN and B_ENDIAN. We do that differentiation by allowing upper case attributes in the config targets, named exactly like the "make variables" we support, and reserving the lower case attributes for non-overridable project flags. Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5534)
* Add -h and -help for c_rehash script and appRich Salz2016-09-141-4/+4
| | | | | | Resolves GH1515 and GH1509. Reviewed-by: Matt Caswell <matt@openssl.org>
* perl: Separate compile-time environment from runtime environmentRichard Levitte2016-07-041-1/+1
| | | | | | | | | | | | | Make it possible to have a separate and different perl command string for installable scripts than we use when building, with the environment variable HASHBANGPERL. Its value default to the same as the environment PERL if it's defined, otherwise '/usr/bin/env perl'. Note: this is only relevant for Unix-like environments. Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Kurt Roeckx <kurt@openssl.org>
* GH1123: sort dir before rehashRich Salz2016-06-021-1/+1
| | | | | | This is needed to generate stable output names/symlinks. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Remove/rename some old files.Rich Salz2016-06-015-62/+0
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Add final(?) set of copyrights.Rich Salz2016-06-011-0/+6
| | | | | | | | | Add copyright to missing assembler files. Add copyrights to missing test/* files. Add copyrights Various source and misc files. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Make sure tsget and c_rehash are named with .pl suffix on Windows and VMSRichard Levitte2016-05-231-2/+5
| | | | | | | | Especially on Windows, the .pl suffix is associated with the perl interpreter, and therefore make those scripts usable as commands of their own. On VMS, it simply looks better. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Remove --classic build entirelyRichard Levitte2016-04-201-62/+0
| | | | | | | | The Unix build was the last to retain the classic build scheme. The new unified scheme has matured enough, even though some details may need polishing. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Fix installation for no-stdio and no-autoalginitRichard Levitte2016-04-141-2/+4
| | | | | Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* Remove the remainder of util/mk1mf.pl and companion scriptsRichard Levitte2016-03-211-3/+0
| | | | | | | This removes all scripts that deal with MINFO as well, since that's only used by mk1mf. Reviewed-by: Andy Polyakov <appro@openssl.org>
* Remove more unused things.Rich Salz2016-03-181-15/+0
| | | | | | Moved doc/standards.txt to the web. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Rename INSTALL_PREFIX to DESTDIR, remove option --install_prefixRichard Levitte2016-02-121-10/+10
| | | | | | | | | | | | | INSTALL_PREFIX is a confusing name, as there's also --prefix. Instead, tag along with the rest of the open source world and adopt the Makefile variable DESTDIR to designate the desired staging directory. The Configure option --install_prefix is removed, the only way to designate a staging directory is with the Makefile variable (this is also implemented for VMS' descrip.mms et al). Reviewed-by: Rich Salz <rsalz@openssl.org>
* unified build scheme: add build.info filesRichard Levitte2016-02-011-0/+2
| | | | | | | | | Now that we have the foundation for the "unified" build scheme in place, we add build.info files. They have been generated from the Makefiles in the same directories. Things that are platform specific will appear in later commits. Reviewed-by: Andy Polyakov <appro@openssl.org>
* Generate warning textRichard Levitte2016-01-252-1/+3
| | | | | | | | | | | | | | Now that we're using templates, we should warn people not to edit the resulting file. We do it through util/dofile.pl, which is enhanced with an option to tell what file it was called from. We also change the calls so the template files are on the command line instead of being redirected through standard input. That way, we can display something like this (example taken from include/openssl/opensslconf.h): /* WARNING: do not edit! */ /* Generated by Configure from include/openssl/opensslconf.h.in */ Reviewed-by: Rich Salz <rsalz@openssl.org>
* Refactor file writing - introduce template driven file writingRichard Levitte2016-01-222-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | apps/CA.pl and tools/c_rehash are built from template files. So far, this was done by Configure, which created its own problems as it forced everyone to reconfigure just because one of the template files had changed. Instead, have those files created as part of the normal build in apps/ and in tools/. Furthermore, this prepares for a future where Configure may produce entirely other build files than Makefile, and the latter can't be guaranteed to be the holder of all information for other scripts. Instead, configdata.pm (described below) becomes the center of configuration information. This introduces a few new things: %config a hash table to hold all kinds of configuration data that can be used by any other script. configdata.pm a perl module that Configure writes. It currently holds the hash tables %config and %target. util/dofile.pl a script that takes a template on STDIN and outputs the result after applying configuration data on it. It's supposed to be called like this: perl -I$(TOP) -Mconfigdata < template > result or perl -I$(TOP) -Mconfigdata templ1 templ2 ... > result Note: util/dofile.pl requires Text::Template. As part of this changed, remove a number of variables that are really just copies of entries in %target, and use %target directly. The exceptions are $target{cflags} and $target{lflags}, they do get copied to $cflags and $lflags. The reason for this is that those variable potentially go through a lot of changes and would rather deserve a place in %config. That, however, is for another commit. Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
* Remove update tagsRich Salz2016-01-201-2/+0
| | | | | Also remove depend/local_depend. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Remove some old makefile targetsRich Salz2016-01-171-8/+0
| | | | | | | | Remove lint, tags, dclean, tests. This is prep for a new makedepend scheme. This is temporary pending unified makefile, and might help it. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Move Makefiles to Makefile.inRich Salz2016-01-121-0/+0
| | | | | | | | | | Create Makefile's from Makefile.in Rename Makefile.org to Makefile.in Rename Makefiles to Makefile.in Address review feedback from Viktor and Richard Reviewed-by: Viktor Dukhovni <viktor@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
* Unwriteable directories are errorsRich Salz2015-09-101-0/+3
| | | | | | Make the script and app match the documentation. Reviewed-by: Tim Hudson <tjh@openssl.org>
* Fix rehash/c_rehash doc and behavior.Rich Salz2015-09-081-27/+37
| | | | | | | | Both now warn once if directory isn't writeable. Both now warn on file-write errors (multiple times). Update manpage to describe both program and script correctly. Reviewed-by: Richard Levitte <levitte@openssl.org>
* GH249: Fix bad regexp in arg parsing.Olaf Johansson2015-06-021-3/+3
| | | | | Signed-off-by: Rich Salz <rsalz@akamai.com> Reviewed-by: Richard Levitte <levitte@openssl.org>
* Fix the update target and remove duplicate file updatesRichard Levitte2015-05-221-0/+2
| | | | | | | | | | | | | | | We had updates of certain header files in both Makefile.org and the Makefile in the directory the header file lived in. This is error prone and also sometimes generates slightly different results (usually just a comment that differs) depending on which way the update was done. This removes the file update targets from the top level Makefile, adds an update: target in all Makefiles and has it depend on the depend: or local_depend: targets, whichever is appropriate, so we don't get a double run through the whole file tree. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Remove EXHEADER, TEST, APPS, links:, install: and uninstall: where relevantRichard Levitte2015-03-311-3/+0
| | | | | | | | | | | | With no more symlinks, there's no need for those variables, or the links target. This also goes for all install: and uninstall: targets that do nothing but copy $(EXHEADER) files, since that's now taken care of by the top Makefile. Also, removed METHTEST from test/Makefile. It looks like an old test that's forgotten... Reviewed-by: Rich Salz <rsalz@openssl.org>
* RT478: Add uninstall make targetRich Salz2015-01-121-0/+12
| | | | | | | | | | | | | | | | | Add INSTALLDIRS variable, list of directories where things get installed. Change install_html_docs to use perl mkdir-p script. Add uninstall, uninstall_sw, uninstall_docs, uninstall_html_docs to Makefile.org. The actions of these targets were figured out by "inverting" the install target. Recurse into subdirs to do uninstall as needed. Added uninstall targets whose actions were similarly figured out by "inverting" the install target. Also remove some 'space before tab' complaints in Makefile.org Reviewed-by: Tim Hudson <tjh@openssl.org>
* RT3497: The ticket that keeps on giving.Rich Salz2014-12-151-1/+0
| | | | | | | | Don't remove c_rehash that wasn't created by make; this script is created by configure. This fix brought to you by the letter "f" and Reviewed-by: Emilia Kasper <emilia@openssl.org>
* RT3497: Clean up "dclean" targetsRich Salz2014-12-111-1/+1
| | | | | | | | Some Makefiles had actions for "dclean" that really belonged to the "clean" target. This is wrong because clean ends up, well, not really cleaning everything. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Remove all .cvsignore filesRich Salz2014-11-281-4/+0
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* RT2772 update: c_rehash was brokenRich Salz2014-09-111-3/+3
| | | | | | | Move the readdir() lines out of the if statement, so that flist is available globally. Reviewed-by: Tim Hudson <tjh@openssl.org>
* RT2272: Add old-style hash to c_rehashMatthias Andree2014-09-081-26/+56
| | | | | | | In addition to Matthias's change, I also added -n to not remove links. And updated the manpage. Reviewed-by: Tim Hudson <tjh@openssl.org>
* RT1325,2973: Add more extensions to c_rehashViktor Dkhovni2014-09-071-1/+1
| | | | | | Regexp was bracketed wrong. Reviewed-by: Tim Hudson <tjh@openssl.org>
* RT1325,2973: Add more extensions to c_rehashTANABE Hiroyasu2014-08-311-1/+1
| | | | | | | | | | Add .crt/.cer/.crl to the filenames parsed. I also updated the podpage (since it didn't exist when this ticket was first created, nor when it was re-created seven years later). Reviewed-by: Tim Hudson <tjh@openssl.org>
* Try skipping over the adding and just picking a new random number.Felix Laurie von Massenbach2014-06-011-3/+3
| | | | | | | | Generates a number coprime to 2, 3, 5, 7, 11. Speed: Trial div (add) : trial div (retry) : coprime 1 : 0.42 : 0.84
* Add python script to generate the bits needed for the prime generator.Felix Laurie von Massenbach2014-06-011-0/+21
|
* PR: 2234Dr. Stephen Henson2010-04-141-1/+2
| | | | | | Submitted By: Matthias Andree <matthias.andree@gmx.de> Use correct path to openssl utility in c_rehash script.
* Merge from 1.0.0-stable branch.Dr. Stephen Henson2009-04-231-0/+1
|
* Minor portability update to c_rehash.Andy Polyakov2006-10-261-1/+7
|
* Make c_rehash more platform neutral and make it work in mixed environment,Andy Polyakov2006-10-211-5/+17
| | | | such as MSYS with "native" Win32 perl.
* improve make dclean to remove files generated during buildUlf Möller2006-04-111-0/+1
| | | | | | PR: 1308 Submitted by: Oliver Tappe <zooey@hirschkaefer.de> Reviewed by: Ulf Moeller
* Update filenames in makefiles.Dr. Stephen Henson2006-02-041-1/+1
|
* Further BUILDENV refinement, further fool-proofing of Makefiles andAndy Polyakov2005-05-161-2/+0
| | | | | [most importantly] put back dependencies accidentaly eliminated in check-in #13342.
* Fool-proofing MakefilesAndy Polyakov2005-05-151-4/+1
|
* Add emacs cache files to .cvsignore.Richard Levitte2005-04-111-0/+2
|
* Blow away Makefile.ssl.Ben Laurie2005-03-301-5/+4
|
* Change \t to real tab in echo argument.Richard Levitte2004-03-211-1/+1
| | | | PR: 847
* Use sh explicitely to run point.shRichard Levitte2003-12-271-1/+1
| | | | This is part of a large change submitted by Markus Friedl <markus@openbsd.org>
* There was a mixup between INSTALLTOP and OPENSSLDIR...Richard Levitte2002-12-201-1/+1
|
* Update the make system for installations:Richard Levitte2002-12-151-4/+6
| | | | | | | | | - define a HERE variable to indicate where the source tree is (used very little right now) - make more use of copying and making attribute changes to {file}.new, and then move it to {file} - use 'mv -f' to avoid all those questions to the user when the file in question doesn't have write attributes for that user.
* And if the path has a space, we definitely need to protect $openssl.Richard Levitte2002-10-111-2/+2
|