X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/3857519629ca8fbcf3466c3fc761a5bb6ed32d53..f4db5740c56f3b29b11a796147086ec8848a7e90:/src/scripts/MakeLinks diff --git a/src/scripts/MakeLinks b/src/scripts/MakeLinks index 0694af4c0..998b73bf9 100755 --- a/src/scripts/MakeLinks +++ b/src/scripts/MakeLinks @@ -3,7 +3,7 @@ # Script to build links for all the exim source files from the system- # specific build directory. It should be run from within that directory. # -# Copyright (c) The Exim Maintainers 1995 - 2022 +# Copyright (c) The Exim Maintainers 1995 - 2024 # SPDX-License-Identifier: GPL-2.0-or-later test ! -d ../src && \ @@ -28,67 +28,84 @@ echo ">>> Creating links to source files..." # their own Makefile in their sub-directory. # Firstly the lookups -mkdir lookups -cd lookups +d="lookups" +mkdir $d +cd $d # Makefile is generated for f in README cdb.c dbmdb.c dnsdb.c dsearch.c ibase.c json.c ldap.h ldap.c \ lmdb.c lsearch.c mysql.c nis.c nisplus.c oracle.c passwd.c \ pgsql.c readsock.c redis.c spf.c sqlite.c testdb.c whoson.c \ lf_functions.h lf_check_file.c lf_quote.c lf_sqlperform.c do - ln -s ../../src/lookups/$f $f + ln -s ../../src/$d/$f $f done cd .. # Likewise for the code for the routers -mkdir routers -cd routers -for f in README Makefile accept.h accept.c dnslookup.h dnslookup.c \ +d="routers" +mkdir $d +cd $d +# Makefile is generated +for f in README accept.h accept.c dnslookup.h dnslookup.c \ ipliteral.h ipliteral.c iplookup.h iplookup.c manualroute.h \ manualroute.c queryprogram.h queryprogram.c redirect.h redirect.c \ rf_functions.h rf_change_domain.c rf_expand_data.c rf_get_errors_address.c \ rf_get_munge_headers.c rf_get_transport.c rf_get_ugid.c rf_queue_add.c \ rf_lookup_hostlist.c rf_self_action.c rf_set_ugid.c do - ln -s ../../src/routers/$f $f + ln -s ../../src/$d/$f $f done cd .. # Likewise for the code for the transports -mkdir transports -cd transports -for f in README Makefile appendfile.h appendfile.c autoreply.h \ +d="transports" +mkdir $d +cd $d +# Makefile is generated +for f in README appendfile.h appendfile.c autoreply.h \ autoreply.c lmtp.h lmtp.c pipe.h pipe.c queuefile.c queuefile.h \ smtp.h smtp.c smtp_socks.c tf_maildir.c tf_maildir.h do - ln -s ../../src/transports/$f $f + ln -s ../../src/$d/$f $f done cd .. # Likewise for the code for the authentication drivers -mkdir auths -cd auths +d="auths" +mkdir $d +cd $d for f in README Makefile call_pam.c call_pwcheck.c \ call_radius.c check_serv_cond.c cyrus_sasl.c cyrus_sasl.h gsasl_exim.c \ gsasl_exim.h get_data.c get_no64_data.c heimdal_gssapi.c heimdal_gssapi.h \ - xtextencode.c xtextdecode.c cram_md5.c cram_md5.h plaintext.c plaintext.h \ + cram_md5.c cram_md5.h plaintext.c plaintext.h \ pwcheck.c pwcheck.h auth-spa.c auth-spa.h dovecot.c dovecot.h sha1.c spa.c \ spa.h tls.c tls.h external.c external.h do - ln -s ../../src/auths/$f $f + ln -s ../../src/$d/$f $f +done +cd .. + +# and the hintsdb implementations +d="hintsdb" +mkdir $d +cd $d +for f in hints_bdb.h hints_gdbm.h hints_ndbm.h hints_sqlite.h hints_tdb.h +do + ln -s ../../src/$d/$f $f done cd .. # Likewise for the code for the PDKIM library -mkdir pdkim -cd pdkim +d="pdkim" +mkdir $d +cd $d for f in README Makefile crypt_ver.h pdkim.c \ pdkim.h hash.c hash.h signing.c signing.h blob.h do - ln -s ../../src/pdkim/$f $f + ln -s ../../src/$d/$f $f done cd .. @@ -98,7 +115,8 @@ cd .. for f in blob.h dbfunctions.h exim.h functions.h globals.h \ hash.h hintsdb.h hintsdb_structs.h local_scan.h \ - macros.h mytypes.h osfunctions.h store.h structs.h lookupapi.h sha_ver.h \ + macros.h mytypes.h osfunctions.h path_max.h store.h \ + structs.h lookupapi.h sha_ver.h \ \ acl.c buildconfig.c base64.c child.c crypt16.c daemon.c dbfn.c debug.c \ deliver.c directory.c dns.c dnsbl.c drtables.c dummies.c enq.c exim.c \ @@ -109,7 +127,7 @@ for f in blob.h dbfunctions.h exim.h functions.h globals.h \ sieve.c smtp_in.c smtp_out.c spool_in.c spool_out.c std-crypto.c store.c \ string.c tls.c tlscert-gnu.c tlscert-openssl.c tls-cipher-stdname.c \ tls-gnu.c tls-openssl.c \ - tod.c transport.c tree.c verify.c version.c \ + tod.c transport.c tree.c verify.c version.c xtextencode.c \ dkim.c dkim.h dkim_transport.c dmarc.c dmarc.h \ valgrind.h memcheck.h \ macro_predef.c macro_predef.h @@ -125,7 +143,7 @@ done # EXPERIMENTAL_* for f in arc.c bmi_spam.c bmi_spam.h dcc.c dcc.h dane.c dane-openssl.c \ - danessl.h imap_utf7.c spf.c spf.h srs.c srs.h utf8.c xclient.c + danessl.h imap_utf7.c spf.c spf.h utf8.c xclient.c do ln -s ../src/$f $f done