summaryrefslogtreecommitdiff
path: root/morphlib/buildsystem.py
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2014-04-16 14:38:14 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2014-04-16 14:38:14 +0000
commit5a800863ca1b26a68b9268138192d0ed793618ba (patch)
tree91edafb4df84eb9c0a11e313b35f8d1a2e5414f5 /morphlib/buildsystem.py
parente787f8e2c9b5abd5b6405427cf17072d4b8e19c9 (diff)
downloadmorph-5a800863ca1b26a68b9268138192d0ed793618ba.tar.gz
This commit exists because I am not going to be around for a week and a half so I'm putting this here in case anyone picks up this while I'm gone. It will want splitting up and rebasing.
Diffstat (limited to 'morphlib/buildsystem.py')
-rw-r--r--morphlib/buildsystem.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/morphlib/buildsystem.py b/morphlib/buildsystem.py
index 1a330568..40188056 100644
--- a/morphlib/buildsystem.py
+++ b/morphlib/buildsystem.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2012-2013 Codethink Limited
+# Copyright (C) 2012-2014 Codethink Limited
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -15,6 +15,7 @@
import os
+import yaml
class BuildSystem(object):
@@ -52,6 +53,9 @@ class BuildSystem(object):
def get_morphology_text(self, name):
'''Return the text of an autodetected chunk morphology.'''
+ return yaml.dump({'name': name,
+ 'kind': 'chunk',
+ 'build-system': self.name}, default_flow_style=False)
return '''
name: %(name)s
kind: chunk