From 445a7f1b37948309feed04ecf4f027652beeb40f Mon Sep 17 00:00:00 2001 From: dbxy <181850195@smail.nju.edu.cn> Date: Wed, 1 Dec 2021 12:21:05 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BD=BF=E7=94=A8l3build=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E8=87=AA=E5=8A=A8=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 11 +++++++++++ source/README-CTAN.md => README-CTAN.md | 4 ++-- build.lua | 20 ++++++++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) rename source/README-CTAN.md => README-CTAN.md (85%) create mode 100644 build.lua diff --git a/.gitignore b/.gitignore index 2b3328e..19859fc 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,9 @@ *.sty *.ins +## Zip file +*.zip + ## Intermediate documents: *.hd *.dvi @@ -28,6 +31,14 @@ # *.eps *.pdf +# Folders +build/ +release/ +support/ +TDS/ +temp/ +mythesis/ + ## Bibliography auxiliary files (bibtex/biblatex/biber): *.bbl *.bcf diff --git a/source/README-CTAN.md b/README-CTAN.md similarity index 85% rename from source/README-CTAN.md rename to README-CTAN.md index c80ddf0..77c522a 100644 --- a/source/README-CTAN.md +++ b/README-CTAN.md @@ -6,8 +6,8 @@ The `njuthesis` class is intended for typesetting Nanjing University dissertatio Contributing ------------ -[Issues](https://github.com/nju-lug/NJUVisual/issues) and -[pull requests](https://github.com/nju-lug/NJUVisual/pulls) +[Issues](https://github.com/nju-lug/NJUThesis/issues) and +[pull requests](https://github.com/nju-lug/NJUThesis/pulls) are always welcome. Wiki diff --git a/build.lua b/build.lua new file mode 100644 index 0000000..9066e74 --- /dev/null +++ b/build.lua @@ -0,0 +1,20 @@ +#!/usr/bin/env texlua + +-- Build script for njuthesis. +-- run with `l3build` + +module = "njuthesis" + +checkengines = {"xetex", "luatex"} +checkopts = "-interaction=batchmode" + +ctanreadme = "README-CTAN.md" + +sourcefiles = {"source/*.dtx"} +installfiles = {"*.cls"} + +typesetexe = "xelatex" +typesetfiles = {"njuthesis.dtx"} + +unpackfiles = {"njuthesis.dtx"} +unpackexe = "xetex" -- GitLab