From: Carl Hetherington Date: Wed, 24 Apr 2013 15:08:37 +0000 (+0100) Subject: Support doxygen builds and report invalid commands. X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=b7b560540e9e7412dcb51f78274f9b14805feff0;p=cdist.git Support doxygen builds and report invalid commands. --- diff --git a/cdist b/cdist index 545cae1..55e1c34 100755 --- a/cdist +++ b/cdist @@ -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)