diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-04-24 16:08:37 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-04-24 16:08:37 +0100 |
| commit | b7b560540e9e7412dcb51f78274f9b14805feff0 (patch) | |
| tree | 87293a69b6ebfc8d7124b7245bbd4113388c0c88 | |
| parent | a1ad4e901a8167dea7379fd479d757e9ea3ff760 (diff) | |
Support doxygen builds and report invalid commands.
| -rwxr-xr-x | cdist | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -518,6 +518,19 @@ elif args.command == 'manual': env.cleanup() +elif args.command == 'doxygen': + env = HostEnvironment() + env.checkout(project) + + dirs = project.cscript['make_doxygen'](env) + if hasattr(dirs, 'strip') or (not hasattr(dirs, '__getitem__') and not hasattr(dirs, '__iter__')): + dirs = [dirs] + + for d in dirs: + copytree(d, '%s/%s' % (args.output, 'doc')) + + env.cleanup() + elif args.command == 'latest': env = HostEnvironment() env.checkout(project) @@ -534,3 +547,6 @@ elif args.command == 'latest': print latest env.cleanup() + +else: + error('invalid command %s' % args.command) |
