Skip to content

Commit

Permalink
Load test font repository
Browse files Browse the repository at this point in the history
  • Loading branch information
zauguin committed Sep 8, 2022
1 parent 804663f commit 17f4b1b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ zzz-*
*.hd

*.curlopt

/fontspec-test-fonts
17 changes: 16 additions & 1 deletion build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ recordstatus = true

packtdszip = true

checksuppfiles = {"texmf.cnf"}

--[===[
DEV
--]===]
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions support/texmf.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TEXMFAUXTREES=../../texmf,
1 change: 1 addition & 0 deletions texmf/fonts/opentype/fontspec-test-fonts
1 change: 1 addition & 0 deletions texmf/fonts/truetype/fontspec-test-fonts

0 comments on commit 17f4b1b

Please sign in to comment.