-ls `cat $src/distrib/msw/generic.rsp` | zip -@ $dest/wxWindows-$version-gen.zip
-ls `cat $src/distrib/msw/makefile.rsp` | zip -@ -u $dest/wxWindows-$version-gen.zip
-ls `cat $src/distrib/msw/msw.rsp` | zip -@ $dest/wxWindows-$version-msw.zip
-ls `cat $src/distrib/msw/makefile.rsp` | zip -@ -u $dest/wxWindows-$version-msw.zip
-ls `cat $src/distrib/msw/gtk.rsp` | zip -@ $dest/wxWindows-$version-gtk.zip
-ls `cat $src/distrib/msw/makefile.rsp` | zip -@ -u $dest/wxWindows-$version-gtk.zip
-ls `cat $src/distrib/msw/stubs.rsp` | zip -@ $dest/wxWindows-$version-stubs.zip
-ls `cat $src/distrib/msw/motif.rsp` | zip -@ $dest/wxWindows-$version-mot.zip
-ls `cat $src/distrib/msw/makefile.rsp` | zip -@ -u $dest/wxWindows-$version-mot.zip
-# ls `cat $src/distrib/msw/user.rsp` | zip -@ $dest/wxWindows-$version-user.zip # Obsolete
-
-ls `cat $src/distrib/msw/docsrc.rsp` | zip -@ $dest/wxWindows-$version-DocSource.zip
-ls `cat $src/distrib/msw/wx_hlp.rsp` | zip -@ $dest/wxWindows-$version-WinHelp.zip
-ls `cat $src/distrib/msw/wx_html.rsp` | zip -@ $dest/wxWindows-$version-HTML.zip
-ls `cat $src/distrib/msw/wx_pdf.rsp` | zip -@ $dest/wxWindows-$version-PDF.zip
-ls `cat $src/distrib/msw/wx_word.rsp` | zip -@ $dest/wxWindows-$version-Word.zip
-ls `cat $src/distrib/msw/wx_htb.rsp` | zip -@ $dest/wxWindows-$version-HTB.zip
-ls `cat $src/distrib/msw/wx_chm.rsp` | zip -@ $dest/wxWindows-$version-HTMLHelp.zip
+
+# We can't use e.g. this:
+# ls `cat $src/distrib/msw/makefile.rsp` zip -@ -u $dest/wxWindows-$version-gen.zip
+# because there's not enough space on the command line, plus we need to ignore the
+# blank lines.
+
+expandlines $src/distrib/msw/generic.rsp temp.txt
+zip -@ $dest/wxWindows-$version-gen.zip < temp.txt
+
+expandlines $src/distrib/msw/makefile.rsp temp.txt
+zip -@ -u $dest/wxWindows-$version-gen.zip < temp.txt
+
+expandlines $src/distrib/msw/msw.rsp temp.txt
+zip -@ $dest/wxWindows-$version-msw.zip < temp.txt
+
+expandlines $src/distrib/msw/makefile.rsp temp.txt
+zip -@ -u $dest/wxWindows-$version-msw.zip < temp.txt
+
+expandlines $src/distrib/msw/gtk.rsp temp.txt
+zip -@ $dest/wxWindows-$version-gtk.zip < temp.txt
+
+expandlines $src/distrib/msw/makefile.rsp temp.txt
+zip -@ -u $dest/wxWindows-$version-gtk.zip < temp.txt
+
+expandlines $src/distrib/msw/stubs.rsp temp.txt
+zip -@ $dest/wxWindows-$version-stubs.zip < temp.txt
+
+expandlines $src/distrib/msw/motif.rsp temp.txt
+zip -@ $dest/wxWindows-$version-mot.zip < temp.txt
+
+expandlines $src/distrib/msw/makefile.rsp temp.txt
+zip -@ -u $dest/wxWindows-$version-mot.zip < temp.txt
+
+
+expandlines $src/distrib/msw/docsrc.rsp temp.txt
+zip -@ $dest/wxWindows-$version-DocSource.zip < temp.txt
+
+expandlines $src/distrib/msw/wx_hlp.rsp temp.txt
+zip -@ $dest/wxWindows-$version-WinHelp.zip < temp.txt
+
+expandlines $src/distrib/msw/wx_html.rsp temp.txt
+zip -@ $dest/wxWindows-$version-HTML.zip < temp.txt
+
+expandlines $src/distrib/msw/wx_pdf.rsp temp.txt
+zip -@ $dest/wxWindows-$version-PDF.zip < temp.txt
+
+expandlines $src/distrib/msw/wx_word.rsp temp.txt
+zip -@ $dest/wxWindows-$version-Word.zip < temp.txt
+
+expandlines $src/distrib/msw/wx_htb.rsp temp.txt
+zip -@ $dest/wxWindows-$version-HTB.zip < temp.txt
+
+expandlines $src/distrib/msw/wx_chm.rsp temp.txt
+zip -@ $dest/wxWindows-$version-HTMLHelp.zip < temp.txt