diff --git a/bin/export.pike b/bin/export.pike
index 06cfc08f0642f7e820cf7c06ee2e526dfd2ffb27..90227c4cca0dd58b57d7a4fafb89488791e6b5e2 100755
--- a/bin/export.pike
+++ b/bin/export.pike
@@ -1,6 +1,6 @@
 #!/usr/local/bin/pike
 
-/* $Id: export.pike,v 1.21 1998/08/21 04:43:57 hubbe Exp $ */
+/* $Id: export.pike,v 1.22 1999/05/06 14:30:49 marcus Exp $ */
 
 #include <simulate.h>
 
@@ -22,6 +22,9 @@ string *get_files(string path)
     if(path==vpath+"/src/modules" && except_modules[tmp])
       continue;
 
+    if(path==vpath+"/bin" && except_modules[tmp])
+      continue;
+
     if(search(path,vpath+"/lib/modules")==0 &&
        (except_modules[tmp] || except_modules[tmp - ".pmod"]))
       continue;
diff --git a/src/Makefile.in b/src/Makefile.in
index 2350e7dbbbb4ca8d6e0086b05a9f77a4f90fd20a..1bda35464c2b1d2fc86339e8be624ad418cad1c1 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -1,5 +1,5 @@
 #
-# $Id: Makefile.in,v 1.123 1998/10/28 11:34:14 grubba Exp $
+# $Id: Makefile.in,v 1.124 1999/05/06 14:30:50 marcus Exp $
 #
 
 # This line is needed on some machines.
@@ -475,7 +475,7 @@ aclocal: $(SRCDIR)/aclocal.m4
 # and thus has to follow the rules stated in that code.
 export: new_peep_engine $(SRCDIR)/language.c $(SRCDIR)/language.h depend
 	chmod +x $(SRCDIR)/install-sh
-	$(RUNPIKE) $(TMP_BINDIR)/export.pike Odbc Oracle _Crypto
+	$(RUNPIKE) $(TMP_BINDIR)/export.pike Odbc Oracle rsql.pike rsqld.pike _Crypto
 
 full_export: new_peep_engine $(SRCDIR)/language.c $(SRCDIR)/language.h depend
 	chmod +x $(SRCDIR)/install-sh