-mkdir auths
-cd auths
-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 \
- md5.c xtextencode.c xtextdecode.c 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
+d="auths"
+mkdir $d
+cd $d
+# Makefile is generated
+for f in README call_pam.c call_pwcheck.c \
+ check_serv_cond.c cyrus_sasl.c cyrus_sasl.h gsasl.c \
+ gsasl.h get_data.c get_no64_data.c heimdal_gssapi.c heimdal_gssapi.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 spa.c \
+ spa.h tls.c tls.h external.c external.h
+do
+ ln -s ../../src/$d/$f $f
+done
+cd ..
+
+# miscellaneous modules
+# Note that the file in the miscmods/pdkim/ source subdir get linked to the
+# destination miscmods/ dir
+d="miscmods"
+mkdir $d
+cd $d
+# Makefile is generated
+for f in dummy.c \
+ arc.c arc_api.h \
+ dkim.c dkim_transport.c dkim.h dkim_api.h \
+ pdkim/crypt_ver.h pdkim/pdkim.c pdkim/pdkim.h \
+ pdkim/pdkim_hash.h pdkim/signing.c pdkim/signing.h \
+ dmarc.c dmarc.h dmarc_api.h \
+ exim_filter.c exim_filter_api.h \
+ pam.c pam_api.h \
+ perl.c perl_api.h \
+ radius.c radius_api.h \
+ sieve_filter.c sieve_filter_api.h \
+ spf.c spf.h spf_api.h