summaryrefslogtreecommitdiff
path: root/yarns/implementations.yarn
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-01-22 13:39:34 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-01-22 15:47:52 +0000
commit52e2b4aa1463e0247b6d1ef1653bbacc5dc0e02c (patch)
tree37256d62a12b00635ef7f76dd9af56a0731d5611 /yarns/implementations.yarn
parent11894bcd780ff0134b142c34c8c7fbf421c4d921 (diff)
downloadmorph-52e2b4aa1463e0247b6d1ef1653bbacc5dc0e02c.tar.gz
yarns: Move system artifact inclusion implementation
This moves the GIVEN system $system uses $artifacts from $source to the generic implements section, and the Python implementation into the edit-morph helper script.
Diffstat (limited to 'yarns/implementations.yarn')
-rw-r--r--yarns/implementations.yarn12
1 files changed, 12 insertions, 0 deletions
diff --git a/yarns/implementations.yarn b/yarns/implementations.yarn
index 89f30c3e..7e9b7275 100644
--- a/yarns/implementations.yarn
+++ b/yarns/implementations.yarn
@@ -797,3 +797,15 @@ Implementations for tarball inspection
IMPLEMENTS THEN tarball (\S+) doesn't contain (.*)
! tar -tf "$DATADIR/$MATCH_1" | grep -Fe "$MATCH_2"
+
+Implementations for morphology manipulation
+==========================================
+
+Altering morphologies in their source repositories
+--------------------------------------------------
+
+ IMPLEMENTS GIVEN system (\S+) uses (.+) from (\S+)
+ "$SRCDIR/scripts/edit-morph" set-system-artifact-depends \
+ "$DATADIR/gits/morphs/$MATCH_1.morph" "$MATCH_3" "$MATCH_2"
+ run_in "$DATADIR/gits/morphs" git add "$MATCH_1.morph"
+ run_in "$DATADIR/gits/morphs" git commit -m "Make $MATCH_1 only use $MATCH_2"