aboutsummaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2016-04-20Remove --classic build entirelyRichard Levitte1-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>
2016-04-14Fix installation for no-stdio and no-autoalginitRichard Levitte1-2/+4
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
2016-03-21Remove the remainder of util/mk1mf.pl and companion scriptsRichard Levitte1-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>
2016-03-18Remove more unused things.Rich Salz1-15/+0
Moved doc/standards.txt to the web. Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-02-12Rename INSTALL_PREFIX to DESTDIR, remove option --install_prefixRichard Levitte1-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>
2016-02-01unified build scheme: add build.info filesRichard Levitte1-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>
2016-01-25Generate warning textRichard Levitte2-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>
2016-01-22Refactor file writing - introduce template driven file writingRichard Levitte2-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>
2016-01-20Remove update tagsRich Salz1-2/+0
Also remove depend/local_depend. Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-01-17Remove some old makefile targetsRich Salz1-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>
2016-01-12Move Makefiles to Makefile.inRich Salz1-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>
2015-09-10Unwriteable directories are errorsRich Salz1-0/+3
Make the script and app match the documentation. Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-09-08Fix rehash/c_rehash doc and behavior.Rich Salz1-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>
2015-06-02GH249: Fix bad regexp in arg parsing.Olaf Johansson1-3/+3
Signed-off-by: Rich Salz <rsalz@akamai.com> Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-05-22Fix the update target and remove duplicate file updatesRichard Levitte1-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>
2015-03-31Remove EXHEADER, TEST, APPS, links:, install: and uninstall: where relevantRichard Levitte1-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>
2015-01-12RT478: Add uninstall make targetRich Salz1-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>
2014-12-15RT3497: The ticket that keeps on giving.Rich Salz1-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>
2014-12-11RT3497: Clean up "dclean" targetsRich Salz1-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>
2014-11-28Remove all .cvsignore filesRich Salz1-4/+0
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-09-11RT2772 update: c_rehash was brokenRich Salz1-3/+3
Move the readdir() lines out of the if statement, so that flist is available globally. Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-09-08RT2272: Add old-style hash to c_rehashMatthias Andree1-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>
2014-09-07RT1325,2973: Add more extensions to c_rehashViktor Dkhovni1-1/+1
Regexp was bracketed wrong. Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-08-31RT1325,2973: Add more extensions to c_rehashTANABE Hiroyasu1-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>
2014-06-01Try skipping over the adding and just picking a new random number.Felix Laurie von Massenbach1-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
2014-06-01Add python script to generate the bits needed for the prime generator.Felix Laurie von Massenbach1-0/+21
2010-04-14PR: 2234Dr. Stephen Henson1-1/+2
Submitted By: Matthias Andree <matthias.andree@gmx.de> Use correct path to openssl utility in c_rehash script.
2009-04-23Merge from 1.0.0-stable branch.Dr. Stephen Henson1-0/+1
2006-10-26Minor portability update to c_rehash.Andy Polyakov1-1/+7
2006-10-21Make c_rehash more platform neutral and make it work in mixed environment,Andy Polyakov1-5/+17
such as MSYS with "native" Win32 perl.
2006-04-11improve make dclean to remove files generated during buildUlf Möller1-0/+1
PR: 1308 Submitted by: Oliver Tappe <zooey@hirschkaefer.de> Reviewed by: Ulf Moeller
2006-02-04Update filenames in makefiles.Dr. Stephen Henson1-1/+1
2005-05-16Further BUILDENV refinement, further fool-proofing of Makefiles andAndy Polyakov1-2/+0
[most importantly] put back dependencies accidentaly eliminated in check-in #13342.
2005-05-15Fool-proofing MakefilesAndy Polyakov1-4/+1
2005-04-11Add emacs cache files to .cvsignore.Richard Levitte1-0/+2
2005-03-30Blow away Makefile.ssl.Ben Laurie1-5/+4
2004-03-21Change \t to real tab in echo argument.Richard Levitte1-1/+1
PR: 847
2003-12-27Use sh explicitely to run point.shRichard Levitte1-1/+1
This is part of a large change submitted by Markus Friedl <markus@openbsd.org>
2002-12-20There was a mixup between INSTALLTOP and OPENSSLDIR...Richard Levitte1-1/+1
2002-12-15Update the make system for installations:Richard Levitte1-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.
2002-10-11And if the path has a space, we definitely need to protect $openssl.Richard Levitte1-2/+2
2002-10-11Oh, there were *two* places where we needed to protect the fileRichard Levitte1-1/+2
name...
2002-10-11There may be more than one single quote to fix.Richard Levitte1-1/+1
PR: 256
2002-10-11Make sure $fname will not give us any surprises with any funny characters.Richard Levitte1-1/+2
PR: 256
2002-06-13Check for the executable $openssl, not just the file.Richard Levitte1-2/+2
Part of PR: 75
2001-11-22OS/390 supportBodo Möller1-0/+15
Submitted by: Richard Shapiro <rshapiro@abinitio.com>
2001-08-17Make sure evil file name characters, like spaces or ampersands (!),Richard Levitte1-2/+2
don't disturb the rehashing process. Spotted and suggested patch from Rudo Thomas <rudo@internet.sk>
2001-04-04Incorporate some changes that make OpenSSL compilable in CygWin.Richard Levitte1-2/+12
2001-02-22e_os.h does not belong with the exported headers. Do not put it thereRichard Levitte1-1/+1
and make all files the depend on it include it without prefixing it with openssl/. This means that all Makefiles will have $(TOP) as one of the include directories.
2001-02-19Make all configuration macros available for application by makingRichard Levitte1-1/+2
sure they are available in opensslconf.h, by giving them names starting with "OPENSSL_" to avoid conflicts with other packages and by making sure e_os2.h will cover all platform-specific cases together with opensslconf.h. I've checked fairly well that nothing breaks with this (apart from external software that will adapt if they have used something like NO_KRB5), but I can't guarantee it completely, so a review of this change would be a good thing.