1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/instscripts Sat Mar 06 22:51:27 2010 +0100
1.3 @@ -0,0 +1,21 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +from glob import glob
1.7 +import MoinMoin.script
1.8 +import os, shutil, sys
1.9 +
1.10 +target_dir = os.path.split(MoinMoin.script.__file__)[0]
1.11 +
1.12 +test = "--test" in sys.argv or "-n" in sys.argv
1.13 +
1.14 +for script in glob(os.path.join("scripts", "*", "*.py")):
1.15 + subdir = os.path.split(os.path.split(script)[0])[-1]
1.16 + destination = os.path.join(target_dir, subdir)
1.17 + print "Copying", script, "to", destination, "...",
1.18 + if not test:
1.19 + shutil.copy(script, destination)
1.20 + print "done."
1.21 + else:
1.22 + print "not done (test only)."
1.23 +
1.24 +# vim: tabstop=4 expandtab shiftwidth=4