[latex3-commits] [git/l3build] master: unix_to_win() should be OS-neutral (23bea2a)
Joseph Wright
joseph.wright at morningstar2.co.uk
Sat Jan 27 09:21:05 CET 2018
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/23bea2a01ec78fabb6b340e02df97a372762b16e
>---------------------------------------------------------------
commit 23bea2a01ec78fabb6b340e02df97a372762b16e
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Sat Jan 27 08:03:01 2018 +0000
unix_to_win() should be OS-neutral
>---------------------------------------------------------------
23bea2a01ec78fabb6b340e02df97a372762b16e
l3build-file-functions.lua | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/l3build-file-functions.lua b/l3build-file-functions.lua
index d85a3d2..71311bf 100644
--- a/l3build-file-functions.lua
+++ b/l3build-file-functions.lua
@@ -364,7 +364,11 @@ end
-- Deal with the fact that Windows and Unix use different path separators
function unix_to_win(path)
- return gsub(path, "/", "\\")
+ if os_type == "windows" then
+ return gsub(path, "/", "\\")
+ else
+ return path
+ end
end
More information about the latex3-commits
mailing list