diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-06-22 00:34:27 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-06-22 00:34:27 +0000 |
commit | 4dd4535441cfd524138a346ea2f09989ad49db49 (patch) | |
tree | 4f5a755d93e90e69b370504bbb717e12548a70fe /util | |
parent | 8415060e1ee25e6d9aef2a5cbd65e3d22ef64ea9 (diff) |
Change mkstack.pl so it now sorts each group
into lexical order. Previously it depended on
the order of files in the directory.
This should now mean that all systems will
agree on the order of safestack.h and will
not change it needlessly and avoid massive
needless commits to safestack.h in future.
It wont however avoid this one :-(
Diffstat (limited to 'util')
-rwxr-xr-x | util/mkstack.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/mkstack.pl b/util/mkstack.pl index 6437138683..3ee13fe7c9 100755 --- a/util/mkstack.pl +++ b/util/mkstack.pl @@ -62,7 +62,7 @@ while(<IN>) { next if($inside_block != 1); $new_stackfile .= "/* This block of defines is updated by util/mkstack.pl, please do not touch! */"; - foreach $type_thing (@stacklst) { + foreach $type_thing (sort @stacklst) { $new_stackfile .= <<EOF; #define sk_${type_thing}_new(st) SKM_sk_new($type_thing, (st)) @@ -86,7 +86,7 @@ while(<IN>) { #define sk_${type_thing}_sort(st) SKM_sk_sort($type_thing, (st)) EOF } - foreach $type_thing (@asn1setlst) { + foreach $type_thing (sort @asn1setlst) { $new_stackfile .= <<EOF; #define d2i_ASN1_SET_OF_${type_thing}(st, pp, length, d2i_func, free_func, ex_tag, ex_class) \\ @@ -99,7 +99,7 @@ EOF SKM_ASN1_seq_unpack($type_thing, (buf), (len), (d2i_func), (free_func)) EOF } - foreach $type_thing (@p12stklst) { + foreach $type_thing (sort @p12stklst) { $new_stackfile .= <<EOF; #define PKCS12_decrypt_d2i_${type_thing}(algor, d2i_func, free_func, pass, passlen, oct, seq) \\ |