-mkdir transports
-cd transports
-for f in README Makefile appendfile.h appendfile.c autoreply.h \
- autoreply.c lmtp.h lmtp.c pipe.h pipe.c smtp.h smtp.c smtp_socks.c \
- tf_maildir.c tf_maildir.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/$d/$f $f
+done
+
+cd ..
+
+# Likewise for the code for the authentication drivers
+d="auths"
+mkdir $d
+cd $d
+# Makefile is generated
+for f in README call_pam.c call_pwcheck.c \
+ call_radius.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