check Windows file names, e.g. relavant for native Mercurial, but also for Isabelle/Scala;
authorwenzelm
Thu, 20 Oct 2016 16:29:02 +0200
changeset 64324 416f4d031afd
parent 64317 029e6247210e
child 64325 47e03cb99274
check Windows file names, e.g. relavant for native Mercurial, but also for Isabelle/Scala;
src/Pure/Admin/check_sources.scala
--- a/src/Pure/Admin/check_sources.scala	Thu Oct 20 13:53:36 2016 +0200
+++ b/src/Pure/Admin/check_sources.scala	Thu Oct 20 16:29:02 2016 +0200
@@ -15,6 +15,9 @@
     val file_pos = path.position
     def line_pos(i: Int) = Position.Line_File(i + 1, file_name)
 
+    if (space_explode('/', Word.lowercase(path.expand.split_ext._1.implode)).contains("aux"))
+      Output.warning("Illegal file-name on Windows" + Position.here(file_pos))
+
     val content = File.read(path)
 
     for { (line, i) <- split_lines(content).iterator.zipWithIndex }