[latex3-commits] [git/LaTeX3-latex3-fontspec] load_font_repo: Load test font repository (17f4b1b)

Marcel Fabian Krüger tex at 2krueger.de
Thu Sep 8 20:06:53 CEST 2022


Repository : https://github.com/latex3/fontspec
On branch  : load_font_repo
Link       : https://github.com/latex3/fontspec/commit/17f4b1b68cb2bf77d3f1ae06bf8546dbb608eec9

>---------------------------------------------------------------

commit 17f4b1b68cb2bf77d3f1ae06bf8546dbb608eec9
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Thu Sep 8 20:03:57 2022 +0200

    Load test font repository


>---------------------------------------------------------------

17f4b1b68cb2bf77d3f1ae06bf8546dbb608eec9
 .gitignore                               |  2 ++
 build.lua                                | 17 ++++++++++++++++-
 support/texmf.cnf                        |  1 +
 texmf/fonts/opentype/fontspec-test-fonts |  1 +
 texmf/fonts/truetype/fontspec-test-fonts |  1 +
 5 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index e92fd3b..e3d1d85 100644
--- a/.gitignore
+++ b/.gitignore
@@ -33,3 +33,5 @@ zzz-*
 *.hd
 
 *.curlopt
+
+/fontspec-test-fonts
diff --git a/build.lua b/build.lua
index 92d2d12..0743dad 100755
--- a/build.lua
+++ b/build.lua
@@ -23,6 +23,8 @@ recordstatus = true
 
 packtdszip = true
 
+checksuppfiles = {"texmf.cnf"}
+
 --[===[
    DEV
 --]===]
@@ -119,8 +121,21 @@ function check_status()
   end
 end
 
+--[=================[
+  Fetching / updating test font repository
+--]=================]
 
-
+local function ensure_test_fonts()
+  local repo_mode = lfs.attributes('fontspec-test-fonts', 'mode')
+  if repo_mode == nil then
+    assert(os.execute'git clone --depth 1 https://github.com/wspr/fontspec-test-fonts fontspec-test-fonts')
+  elseif repo_mode == 'directory' then
+    assert(os.execute'git -C fontspec-test-fonts pull --ff-only')
+  else
+    error'Unexpected mode of fontspec-test-fonts'
+  end
+end
+ensure_test_fonts()
 
 --[=================[
       CTAN UPLOAD
diff --git a/support/texmf.cnf b/support/texmf.cnf
new file mode 100644
index 0000000..f1ed8f8
--- /dev/null
+++ b/support/texmf.cnf
@@ -0,0 +1 @@
+TEXMFAUXTREES=../../texmf,
diff --git a/texmf/fonts/opentype/fontspec-test-fonts b/texmf/fonts/opentype/fontspec-test-fonts
new file mode 120000
index 0000000..430f15e
--- /dev/null
+++ b/texmf/fonts/opentype/fontspec-test-fonts
@@ -0,0 +1 @@
+../../../fontspec-test-fonts
\ No newline at end of file
diff --git a/texmf/fonts/truetype/fontspec-test-fonts b/texmf/fonts/truetype/fontspec-test-fonts
new file mode 120000
index 0000000..430f15e
--- /dev/null
+++ b/texmf/fonts/truetype/fontspec-test-fonts
@@ -0,0 +1 @@
+../../../fontspec-test-fonts
\ No newline at end of file





More information about the latex3-commits mailing list.