From c521d6fa5a8a18ce3ed420d475ef0a3cc7b51ee5 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Thu, 30 Jul 2015 18:47:43 +0100 Subject: Change how MorphologyLoader instances are created Loading .morph files is becoming a bit more complicated, as we need to deal with the VERSION file, and possibly soon with a DEFAULTS file as well. The logic of loading and parsing .morph files is done either in the sourceresolver module, or the morphloader module. This change means that all users of the latter module can use the get hold of a MorphologyLoader instance with VERSION already parsed. If DEFAULTS is added then it is also simple to parse DEFAULTS. Change-Id: Ib33756e9dbd078e38f12dd7f776c89584b178959 --- tests.branching/setup | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests.branching/setup') diff --git a/tests.branching/setup b/tests.branching/setup index 497e9cff..816d5830 100755 --- a/tests.branching/setup +++ b/tests.branching/setup @@ -47,6 +47,8 @@ mkdir "$DATADIR/morphs" ## Create a link to this repo that has a .git suffix ln -s "$DATADIR/morphs" "$DATADIR/morphs.git" +echo 'version: 6' > "$DATADIR/morphs/VERSION" + cat < "$DATADIR/morphs/hello-system.morph" name: hello-system kind: system -- cgit v1.2.1