nitls: option -M escapes characters in paths
authorJean Privat <jean@pryen.org>
Thu, 24 May 2018 14:02:40 +0000 (10:02 -0400)
committerJean Privat <jean@pryen.org>
Thu, 24 May 2018 14:02:40 +0000 (10:02 -0400)
Close #2699

Signed-off-by: Jean Privat <jean@pryen.org>

src/nitls.nit

index 4321214..62fc09f 100644 (file)
@@ -196,7 +196,9 @@ end
 if opt_source.value then
        alpha_comparator.sort(mmodules)
        for mp in mmodules do
-               if opt_paths.value then
+               if opt_make.value then
+                       print mp.filepath.escape_to_mk
+               else if opt_paths.value then
                        print mp.filepath.as(not null)
                else
                        print "{mp.mgroup.full_name}{ot.display(mp)}"