Put the main work in a `main' sub-module.

This should avoid re-checking the zo file at the end, leading to an
error when it's not there if it moved.
(cherry picked from commit c408dfb03b)
This commit is contained in:
Eli Barzilay 2012-07-27 10:35:00 -04:00 committed by Ryan Culpepper
parent 135aba7dbc
commit 12349ed6e2

View File

@ -450,9 +450,10 @@
;; --------------------------------------------------------------------------
(case op
[(move) (move/copy-distribution #t)]
[(copy) (move/copy-distribution #f)]
[(make-install-copytree) (make-install-copytree)]
[(make-install-destdir-fix) (make-install-destdir-fix)]
[else (error (format "unknown operation: ~e" op))])
(module+ main
(case op
[(move) (move/copy-distribution #t)]
[(copy) (move/copy-distribution #f)]
[(make-install-copytree) (make-install-copytree)]
[(make-install-destdir-fix) (make-install-destdir-fix)]
[else (error (format "unknown operation: ~e" op))]))