config: Turn into a simple wrapper
authorRichard Levitte <levitte@openssl.org>
Mon, 2 Mar 2020 23:08:41 +0000 (00:08 +0100)
committerRichard Levitte <levitte@openssl.org>
Sun, 28 Jun 2020 16:34:36 +0000 (18:34 +0200)
Now that Configure called config.pm's functions directly, the 'config'
script doesn't have much else to do than to pass arguments.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11230)

config

diff --git a/config b/config
index 3f288f37400c0dfadeaa88867ed8683e7982dfab..e194d4bde4f608087751fd512107281ba0b3ada5 100755 (executable)
--- a/config
+++ b/config
@@ -1,5 +1,4 @@
-#! /usr/bin/env perl
-# -*- mode: perl; -*-
+#! /bin/sh
 # Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
 #
 # Licensed under the Apache License 2.0 (the "License").  You may not use
 # Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
 #
 # Licensed under the Apache License 2.0 (the "License").  You may not use
@@ -7,6 +6,5 @@
 # in the file LICENSE in the source distribution or at
 # https://www.openssl.org/source/license.html
 
 # in the file LICENSE in the source distribution or at
 # https://www.openssl.org/source/license.html
 
-use lib "util/perl";
-use OpenSSL::config;
-OpenSSL::config::main();
+THERE=`dirname $0`
+exec "$THERE/Configure" "$@"