diff options
| author | Brad Bishop <bradleyb@us.ibm.com> | 2016-11-10 09:29:09 -0500 |
|---|---|---|
| committer | Brad Bishop <bradleyb@us.ibm.com> | 2016-11-10 09:30:23 -0500 |
| commit | 339068712a3fd8d04722be508f85ef5531991ece (patch) | |
| tree | 12706bce90a4b0176be82bf920aca7139d1aaa06 /tools | |
| parent | cd977611ccc2e124587542e78833cc39743296e5 (diff) | |
| download | sdbusplus-339068712a3fd8d04722be508f85ef5531991ece.tar.gz sdbusplus-339068712a3fd8d04722be508f85ef5531991ece.zip | |
Move templates
Enabling use of package_data in a setup.py.
Change-Id: Ic1423033c0607e1527b0eb31638605b53f0ccc83
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/sdbus++ | 5 | ||||
| -rw-r--r-- | tools/sdbusplus/templates/interface.mako.md (renamed from tools/templates/interface.mako.md) | 0 | ||||
| -rw-r--r-- | tools/sdbusplus/templates/interface.mako.server.cpp (renamed from tools/templates/interface.mako.server.cpp) | 0 | ||||
| -rw-r--r-- | tools/sdbusplus/templates/interface.mako.server.hpp (renamed from tools/templates/interface.mako.server.hpp) | 0 | ||||
| -rw-r--r-- | tools/sdbusplus/templates/method.mako.md (renamed from tools/templates/method.mako.md) | 0 | ||||
| -rw-r--r-- | tools/sdbusplus/templates/method.mako.prototype.hpp (renamed from tools/templates/method.mako.prototype.hpp) | 0 | ||||
| -rw-r--r-- | tools/sdbusplus/templates/property.mako.md (renamed from tools/templates/property.mako.md) | 0 | ||||
| -rw-r--r-- | tools/sdbusplus/templates/signal.mako.md (renamed from tools/templates/signal.mako.md) | 0 | ||||
| -rw-r--r-- | tools/sdbusplus/templates/signal.mako.prototype.hpp (renamed from tools/templates/signal.mako.prototype.hpp) | 0 |
9 files changed, 3 insertions, 2 deletions
diff --git a/tools/sdbus++ b/tools/sdbus++ index 76998c9..6b0a15c 100755 --- a/tools/sdbus++ +++ b/tools/sdbus++ @@ -3,6 +3,7 @@ import sdbusplus import mako.lookup import argparse import sys +import os def main(): @@ -16,8 +17,8 @@ def main(): parser.add_argument('-r', '--rootdir', dest='rootdir', default='example', type=str, help='Location of files to process.') parser.add_argument('-t', '--templatedir', dest='templatedir', - default='templates', type=str, - help='Location of templates files.') + default=os.path.join('sdbusplus', 'templates'), + type=str, help='Location of templates files.') parser.add_argument('typeName', metavar='TYPE', type=str, choices=valid_types.keys(), help='Type to operate on.') parser.add_argument('process', metavar='PROCESS', type=str, diff --git a/tools/templates/interface.mako.md b/tools/sdbusplus/templates/interface.mako.md index f11c9e9..f11c9e9 100644 --- a/tools/templates/interface.mako.md +++ b/tools/sdbusplus/templates/interface.mako.md diff --git a/tools/templates/interface.mako.server.cpp b/tools/sdbusplus/templates/interface.mako.server.cpp index 2a5c497..2a5c497 100644 --- a/tools/templates/interface.mako.server.cpp +++ b/tools/sdbusplus/templates/interface.mako.server.cpp diff --git a/tools/templates/interface.mako.server.hpp b/tools/sdbusplus/templates/interface.mako.server.hpp index ba55ef6..ba55ef6 100644 --- a/tools/templates/interface.mako.server.hpp +++ b/tools/sdbusplus/templates/interface.mako.server.hpp diff --git a/tools/templates/method.mako.md b/tools/sdbusplus/templates/method.mako.md index 4a2f9d6..4a2f9d6 100644 --- a/tools/templates/method.mako.md +++ b/tools/sdbusplus/templates/method.mako.md diff --git a/tools/templates/method.mako.prototype.hpp b/tools/sdbusplus/templates/method.mako.prototype.hpp index d8155c7..d8155c7 100644 --- a/tools/templates/method.mako.prototype.hpp +++ b/tools/sdbusplus/templates/method.mako.prototype.hpp diff --git a/tools/templates/property.mako.md b/tools/sdbusplus/templates/property.mako.md index ee7e451..ee7e451 100644 --- a/tools/templates/property.mako.md +++ b/tools/sdbusplus/templates/property.mako.md diff --git a/tools/templates/signal.mako.md b/tools/sdbusplus/templates/signal.mako.md index ae8b3c4..ae8b3c4 100644 --- a/tools/templates/signal.mako.md +++ b/tools/sdbusplus/templates/signal.mako.md diff --git a/tools/templates/signal.mako.prototype.hpp b/tools/sdbusplus/templates/signal.mako.prototype.hpp index 8dfaf81..8dfaf81 100644 --- a/tools/templates/signal.mako.prototype.hpp +++ b/tools/sdbusplus/templates/signal.mako.prototype.hpp |

