From 297025913d816240425880172cd440179802ed0f Mon Sep 17 00:00:00 2001 From: ranwang Date: Sat, 28 Feb 2026 13:17:01 +0800 Subject: [PATCH] build.lua eol --- .gitattributes | 3 ++- build.lua | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitattributes b/.gitattributes index e1cf38c..67ae2b4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,4 +5,5 @@ LICENSE text eol=lf *.md text eol=lf .gitattributes text eol=lf *.cls text eol=lf -*.bib text eol=lf \ No newline at end of file +*.bib text eol=lf +build.lua text eol=lf \ No newline at end of file diff --git a/build.lua b/build.lua index a62711a..8b04e9c 100644 --- a/build.lua +++ b/build.lua @@ -67,19 +67,19 @@ function typeset(file, dir, exe) return run(dir, cmd .. file) end --- Copy files into the typeset build dir +-- Copy required files into the typeset build dir function docinit_hook() - -- Copy .cls、.bib + -- Copy .cls, .bib support files for _, glob in pairs(typesetsuppfiles) do cp(glob, currentdir, typesetdir) end - -- Copy figure/ and image/ + -- Copy image subdirectory for _, subdir in pairs({imagesuppdir, figuresuppdir}) do local dest = typesetdir .. "/" .. subdir mkdir(dest) cp("*", subdir, dest) end - -- Copy .tex + -- Copy tex source files for _, texfile in pairs(typesetfiles) do cp(texfile, currentdir, typesetdir) end