55 Commits (ab29c82a55f3583a490733dd521ea6c486e8e2fb)

Author SHA1 Message Date
Rich Salz 4c7103a5ee Unwriteable directories are errors
Make the script and app match the documentation.

Reviewed-by: Tim Hudson <tjh@openssl.org>
8 years ago
Rich Salz ff2f6bb084 Fix rehash/c_rehash doc and behavior.
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>
8 years ago
Olaf Johansson 8846adbd36 GH249: Fix bad regexp in arg parsing.
Signed-off-by: Rich Salz <rsalz@akamai.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
8 years ago
Richard Levitte 0f539dc1a2 Fix the update target and remove duplicate file updates
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>
8 years ago
Richard Levitte a80e33b991 Remove EXHEADER, TEST, APPS, links:, install: and uninstall: where relevant
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>
8 years ago
Rich Salz 9405a9a2e1 RT478: Add uninstall make target
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>
9 years ago
Rich Salz 129c81b951 RT3497: The ticket that keeps on giving.
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>
9 years ago
Rich Salz 5ab65c50ef RT3497: Clean up "dclean" targets
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>
9 years ago
Rich Salz 8cfe08b4ec Remove all .cvsignore files
Reviewed-by: Tim Hudson <tjh@openssl.org>
9 years ago
Rich Salz 6f46c3c3b0 RT2772 update: c_rehash was broken
Move the readdir() lines out of the if statement, so
that flist is available globally.

Reviewed-by: Tim Hudson <tjh@openssl.org>
9 years ago
Matthias Andree a787c2590e RT2272: Add old-style hash to c_rehash
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>
9 years ago
Viktor Dkhovni 5a8addc432 RT1325,2973: Add more extensions to c_rehash
Regexp was bracketed wrong.

Reviewed-by: Tim Hudson <tjh@openssl.org>
9 years ago
TANABE Hiroyasu 80ec8d4e3e RT1325,2973: Add more extensions to c_rehash
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>
9 years ago
Felix Laurie von Massenbach 982c42cb20 Try skipping over the adding and just picking a new random number.
Generates a number coprime to 2, 3, 5, 7, 11.

Speed:
Trial div (add) : trial div (retry) : coprime
1 : 0.42 : 0.84
9 years ago
Felix Laurie von Massenbach 8a12085293 Add python script to generate the bits needed for the prime generator. 9 years ago
Dr. Stephen Henson 45078e6c52 PR: 2234
Submitted By: Matthias Andree <matthias.andree@gmx.de>

Use correct path to openssl utility in c_rehash script.
13 years ago
Dr. Stephen Henson ef236ec3b2 Merge from 1.0.0-stable branch. 14 years ago
Andy Polyakov a2688c872d Minor portability update to c_rehash. 17 years ago
Andy Polyakov d8cdd1567f Make c_rehash more platform neutral and make it work in mixed environment,
such as MSYS with "native" Win32 perl.
17 years ago
Ulf Möller 9555339007 improve make dclean to remove files generated during build
PR: 1308
Submitted by: Oliver Tappe <zooey@hirschkaefer.de>
Reviewed by: Ulf Moeller
17 years ago
Dr. Stephen Henson 15ac971681 Update filenames in makefiles. 18 years ago
Andy Polyakov ce92b6eb9c Further BUILDENV refinement, further fool-proofing of Makefiles and
[most importantly] put back dependencies accidentaly eliminated in
check-in #13342.
18 years ago
Andy Polyakov 81a86fcf17 Fool-proofing Makefiles 18 years ago
Richard Levitte 4bb61becbb Add emacs cache files to .cvsignore. 18 years ago
Ben Laurie 42ba5d2329 Blow away Makefile.ssl. 18 years ago
Richard Levitte b8b0b5d856 Change \t to real tab in echo argument.
PR: 847
19 years ago
Richard Levitte 79b42e7654 Use sh explicitely to run point.sh
This is part of a large change submitted by Markus Friedl <markus@openbsd.org>
20 years ago
Richard Levitte 49e42a1f60 There was a mixup between INSTALLTOP and OPENSSLDIR... 21 years ago
Richard Levitte 30c08f2e3d Update the make system for installations:
- 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.
21 years ago
Richard Levitte 56b5f687e4 And if the path has a space, we definitely need to protect $openssl. 21 years ago
Richard Levitte caa4f47f61 Oh, there were *two* places where we needed to protect the file
name...
21 years ago
Richard Levitte b7910992d8 There may be more than one single quote to fix.
PR: 256
21 years ago
Richard Levitte 42b06fbaca Make sure $fname will not give us any surprises with any funny characters.
PR: 256
21 years ago
Richard Levitte 127dca46a0 Check for the executable $openssl, not just the file.
Part of PR: 75
21 years ago
Bodo Möller 1d4581c2dd OS/390 support
Submitted by: Richard Shapiro <rshapiro@abinitio.com>
22 years ago
Richard Levitte bb766a0ad6 Make sure evil file name characters, like spaces or ampersands (!),
don't disturb the rehashing process.
Spotted and suggested patch from Rudo Thomas <rudo@internet.sk>
22 years ago
Richard Levitte 967d95f096 Incorporate some changes that make OpenSSL compilable in CygWin. 22 years ago
Richard Levitte 41d2a336ee e_os.h does not belong with the exported headers. Do not put it there
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.
23 years ago
Richard Levitte cf1b7d9664 Make all configuration macros available for application by making
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.
23 years ago
Dr. Stephen Henson 439df5087f Fix c_rehash script, add -fingerprint option to crl. 23 years ago
Ulf Möller 31ff97b28a mk1mf.pl and mkdef.pl read OPTIONS from toplevel Makefile.
Configure no longer changes files in place.
24 years ago
Bodo Möller 559b52ac46 Restored path names that were changed by a previous "Configure" run.
(Rather than changing the files in places, we really should use .in files.)
Submitted by:
Reviewed by:
PR:
24 years ago
Bodo Möller ce0d9f049a Some comments.
Submitted by:
Reviewed by:
PR:
24 years ago
Bodo Möller e5f3045fbf Support INSTALL_PREFIX for packagers.
Submitted by:
Reviewed by:
PR:
24 years ago
Bodo Möller cc98d9b68c Fix make target "install".
Submitted by: Niels Poppe
Reviewed by:
PR:
24 years ago
Bodo Möller ddeee82c63 Install various scripts to $(OPENSSLDIR)/misc instead of $(INSTALLTOP)/bin.
Submitted by:
Reviewed by:
PR:
24 years ago
Ulf Möller 99aab1619f New Makefile variables $(RANLIB) and $(PERL). 25 years ago
Ben Laurie 5d11adc8af Correct English. 25 years ago
Ralf S. Engelschall bb8f3c5879 General source tree makefile cleanups: Made `making xxx in yyy...' display
consistent in the source tree and replaced `/bin/rm' by `rm'.  Additonally
cleaned up the `make links' target: Remove unnecessary semicolons, subsequent
redundant removes, inline point.sh into mklink.sh to speed processing and no
longer clutter the display with confusing stuff. Instead only the actually
done links are displayed.
25 years ago
Ben Laurie 8039257dbc Finally lay dependencies to rest (I hope!). 25 years ago