[latex3-commits] [l3svn] 03/04: l3build: Reorder functions

noreply at latex-project.org noreply at latex-project.org
Sun May 28 08:06:56 CEST 2017


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

commit fdf6cab9e76597f9119e32453338673dd5621a65
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun May 28 06:42:04 2017 +0100

    l3build: Reorder functions
    
    Just for ease-of-finding.
---
 l3build/l3build.lua |   30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index e2373f9..7e5f10a 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -468,6 +468,15 @@ if os_type == "windows" then
   os_yes     = "for /l %I in (1,1,200) do @echo y"
 end
 
+-- Return an absolute path from a relative one
+function abspath(path)
+  local oldpwd = lfs.currentdir()
+  lfs.chdir(path)
+  local result = lfs.currentdir()
+  lfs.chdir(oldpwd)
+  return gsub(result, "\\", "/")
+end
+
 -- For cleaning out a directory, which also ensures that it exists
 function cleandir(dir)
   local errorlevel = mkdir(dir)
@@ -566,15 +575,6 @@ function mkdir(dir)
   end
 end
 
--- Return an absolute path from a relative one
-function abspath(path)
-  local oldpwd = lfs.currentdir()
-  lfs.chdir(path)
-  local result = lfs.currentdir()
-  lfs.chdir(oldpwd)
-  return gsub(result, "\\", "/")
-end
-
 -- Rename
 function ren(dir, source, dest)
   local dir = dir .. "/"
@@ -1402,18 +1402,18 @@ function dvitopdf(name, dir, engine, hide)
   end
 end
 
--- Strip the extension from a file name (if present)
-function stripext(file)
-  local name = match(file, "^(.*)%.")
-  return name or file
-end
-
 -- Strip the path from a file name (if present)
 function basename(file)
   local name = match(file, "^.*/([^/]*)$")
   return name or file
 end
 
+-- Strip the extension from a file name (if present)
+function stripext(file)
+  local name = match(file, "^(.*)%.")
+  return name or file
+end
+
 -- Look for a test: could be in the testfiledir or the unpackdir
 function testexists(test)
   return(locate({testfiledir, unpackdir}, {test .. lvtext}))

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list