diff options
| author | Tim Penhey <tim.penhey@canonical.com> | 2011-07-22 11:54:08 +1200 |
|---|---|---|
| committer | Tim Penhey <tim.penhey@canonical.com> | 2011-07-22 11:54:08 +1200 |
| commit | 8472d65f3575acabe6da17b7b1dc0fd520acd7d5 (patch) | |
| tree | 049eb8a263e77e129431d60623386458937565b1 /tools | |
| parent | 21355667f7d657fb45aa9552337cb3690a92bf28 (diff) | |
| parent | f25fc6f4814594987e4e58132bc70286a5803d63 (diff) | |
Add the coding guidelines into the tree.
(bzr r1311)
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/coding-guidelines | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/coding-guidelines b/tools/coding-guidelines new file mode 100755 index 000000000..c6e79ac05 --- /dev/null +++ b/tools/coding-guidelines @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +import os +import sys +import webbrowser + +curr_dir = os.path.abspath(os.path.dirname(__file__)) +branch_root_dir = os.path.dirname(curr_dir) +guide_file = os.path.join(branch_root_dir, 'build', 'guides', 'cppguide.html') + +if not os.path.isfile(guide_file): + print "You need to build unity (or the docs) first." + sys.exit(1) + +webbrowser.open(guide_file) |
