Skip to content

Commit 80fb44c

Browse files
committed
Cleanup
Signed-off-by: Sora Morimoto <[email protected]>
1 parent c712a75 commit 80fb44c

File tree

16 files changed

+57
-217
lines changed

16 files changed

+57
-217
lines changed

.gitignore

Lines changed: 6 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,6 @@
1-
.DS_Store
2-
\#*
3-
.\#*
4-
*~
5-
*.exe
6-
*.tex
7-
*.log
8-
*.aux
9-
*.dvi
10-
*.pdf
11-
*.out
12-
*.html
13-
obsolete/*.txt
14-
old/
15-
*.png
16-
satysfi
17-
*.ttf
18-
*.otf
19-
*.ttc
20-
*.dfont
21-
*.afm
22-
*.t1a
23-
*.svg
24-
!/logo/macrodown.svg
25-
*.dat
26-
*.ttx
27-
*.jpg
28-
!/demo/satysfi-logo.jpg
29-
!/tests/images/satysfi-logo-cmyk.jpg
30-
!/tests/images/satysfi-logo-gray.jpg
31-
!/tests/images/satysfi-logo-rgb.jpg
32-
!/tests/images/peppers-cmyk.jpg
33-
!/tests/images/peppers-gray.jpg
34-
!/tests/images/peppers-rgb.jpg
35-
*.satysfi-aux
36-
external/
37-
38-
# Created by https://www.toptal.com/developers/gitignore/api/ocaml
39-
# Edit at https://www.toptal.com/developers/gitignore?templates=ocaml
40-
41-
### OCaml ###
42-
*.annot
43-
*.cmo
44-
*.cma
45-
*.cmi
46-
*.a
47-
*.o
48-
*.cmx
49-
*.cmxs
50-
*.cmxa
51-
52-
# ocamlbuild working directory
53-
_build/
54-
55-
# ocamlbuild targets
56-
*.byte
57-
*.native
58-
59-
# oasis generated files
60-
setup.data
61-
setup.log
62-
63-
# Merlin configuring file for Vim and Emacs
64-
.merlin
65-
66-
# Dune generated files
67-
*.install
68-
69-
# Local OPAM switch
70-
_opam
71-
72-
# End of https://www.toptal.com/developers/gitignore/api/ocaml
1+
/_build/
2+
/_opam/
3+
/lib-satysfi/dist/fonts/
4+
/temp/IPAexfont00401/
5+
/temp/latinmodern-math-1959/
6+
/temp/*.zip

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"ocaml.sandbox": {
3+
"kind": "opam",
4+
"switch": "${workspaceFolder:SATySFi}"
5+
}
6+
}

Makefile

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,17 @@
11
PREFIX=/usr/local
22
LIBDIR=$(PREFIX)/share/satysfi
3-
TARGET=satysfi
43
BINDIR=$(PREFIX)/bin
5-
RM=rm -f
6-
DUNE=dune
74

8-
.PHONY: all install lib uninstall clean
5+
.PHONY: all install uninstall clean
96

107
all:
11-
$(DUNE) build --root .
12-
cp _build/install/default/bin/$(TARGET) .
8+
dune build
139

14-
install: $(TARGET)
15-
mkdir -p $(BINDIR)
16-
install $(TARGET) $(BINDIR)
10+
clean:
11+
dune clean
1712

18-
#preliminary:
19-
# [ -d .git ] && git submodule update -i || echo "Skip git submodule update -i"
13+
install:
14+
dune install --bindir=$(BINDIR)
2015

2116
uninstall:
22-
rm -rf $(BINDIR)/$(TARGET)
23-
rm -rf $(LIBDIR)
24-
25-
clean:
26-
$(DUNE) clean
27-
$(RM) satysfi
17+
dune uninstall --bindir=$(BINDIR)

download-fonts.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ download_file() {
3838
show_message "'$NAME' found in '$CACHE/'."
3939
else
4040
show_message "downloading '$NAME' ..."
41-
wget -O "$CACHE/$NAME" "$URL"
41+
wget --no-check-certificate --output-document "$CACHE/$NAME" "$URL"
4242
show_message "finished downloading '$NAME'."
43+
validate_file "$NAME"
4344
fi
4445
)
4546
}

dune-project

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
(name satysfi)
66

7-
(version 0.0.11)
8-
97
(license LGPL-3.0-only)
108

119
(authors "Takashi Suwa")
@@ -28,51 +26,33 @@
2826
(>= 4.12.0)
2927
(< 5.0.0)))
3028
(batteries
31-
(and
32-
(>= 3.6.0)
33-
(< 4.0)))
29+
(>= 3.6.0))
3430
(camlimages
3531
(and
3632
(>= 5.0.1)
3733
(< 5.0.5)))
3834
(camlpdf
3935
(= 2.3.1+satysfi))
4036
(core_kernel
41-
(and
42-
(>= v0.15)
43-
(< v0.17)))
37+
(>= v0.15))
4438
(cppo
45-
(and
46-
:build
47-
(>= 1.6.4)
48-
(< 1.7.0)))
39+
(>= 1.6.4))
40+
dune-build-info
4941
(menhir
50-
(and
51-
:build
52-
(>= 20231231)))
42+
(>= 20231231))
5343
(menhirLib
5444
(>= 20231231))
55-
(ocamlfind :build)
5645
(omd
5746
(and
5847
(>= 1.3.2)
5948
(< 2.0)))
6049
(otfed
61-
(and
62-
(>= 0.3.1)
63-
(< 0.4)))
50+
(>= 0.3.1))
6451
(ppx_deriving
65-
(and
66-
(>= 5.2.1)
67-
(< 6.0)))
52+
(>= 5.2.1))
6853
(re
69-
(and
70-
:build
71-
(>= 1.10.4)
72-
(< 2.0)))
54+
(>= 1.10.4))
7355
(uutf
74-
(and
75-
(>= 1.0.3)
76-
(< 2.0)))
56+
(>= 1.0.3))
7757
(yojson-with-position
7858
(= 1.4.2+satysfi))))

satysfi.opam

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
version: "0.0.11"
43
synopsis: "A statically-typed, functional typesetting system"
54
description:
65
"SATySFi is a typesetting system equipped with a statically-typed, functional programming language. It consists mainly of two “layers” ― the text layer and the program layer. The former is for writing documents in LaTeX-like syntax. The latter, which has OCaml-like syntax, is for defining functions and commands. SATySFi enables you to write documents markuped with flexible commands of your own making. In addition, its informative type error reporting will be a good help to your writing."
@@ -12,30 +11,34 @@ bug-reports: "https://github.com/gfngfn/SATySFi/issues"
1211
depends: [
1312
"dune" {>= "3.16"}
1413
"ocaml" {>= "4.12.0" & < "5.0.0"}
15-
"batteries" {>= "3.6.0" & < "4.0"}
14+
"batteries" {>= "3.6.0"}
1615
"camlimages" {>= "5.0.1" & < "5.0.5"}
1716
"camlpdf" {= "2.3.1+satysfi"}
18-
"core_kernel" {>= "v0.15" & < "v0.17"}
19-
"cppo" {build & >= "1.6.4" & < "1.7.0"}
20-
"menhir" {build & >= "20231231"}
17+
"core_kernel" {>= "v0.15"}
18+
"cppo" {>= "1.6.4"}
19+
"dune-build-info"
20+
"menhir" {>= "20231231"}
2121
"menhirLib" {>= "20231231"}
22-
"ocamlfind" {build}
2322
"omd" {>= "1.3.2" & < "2.0"}
24-
"otfed" {>= "0.3.1" & < "0.4"}
25-
"ppx_deriving" {>= "5.2.1" & < "6.0"}
26-
"re" {build & >= "1.10.4" & < "2.0"}
27-
"uutf" {>= "1.0.3" & < "2.0"}
23+
"otfed" {>= "0.3.1"}
24+
"ppx_deriving" {>= "5.2.1"}
25+
"re" {>= "1.10.4"}
26+
"uutf" {>= "1.0.3"}
2827
"yojson-with-position" {= "1.4.2+satysfi"}
2928
"odoc" {with-doc}
3029
]
31-
dev-repo: "git+https://github.com/gfngfn/SATySFi.git"
3230
build: [
33-
["mkdir" "-p" "temp"]
34-
[make "-f" "Makefile" "PREFIX=%{prefix}%"]
35-
]
36-
install: [
37-
[make "-f" "Makefile" "install" "PREFIX=%{prefix}%"]
38-
]
39-
remove: [
40-
[make "-f" "Makefile" "uninstall" "PREFIX=%{prefix}%"]
31+
["dune" "subst"] {dev}
32+
[
33+
"dune"
34+
"build"
35+
"-p"
36+
name
37+
"-j"
38+
jobs
39+
"@install"
40+
"@runtest" {with-test}
41+
"@doc" {with-doc}
42+
]
4143
]
44+
dev-repo: "git+https://github.com/gfngfn/SATySFi.git"

satysfi.opam.template

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/backend/Makefile

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/backend/how-to-compile.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/dune

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
camlpdf
1313
core_kernel
1414
core_kernel.pairing_heap
15+
dune-build-info
1516
menhirLib
1617
otfed
1718
uutf
@@ -47,16 +48,6 @@
4748
(flags
4849
(--table --explain)))
4950

50-
(rule
51-
(targets version.ml)
52-
(deps
53-
../tools/genversion/genversion.exe
54-
(:src ../satysfi.opam))
55-
(action
56-
(with-stdout-to
57-
%{targets}
58-
(run %{deps}))))
59-
6051
(rule
6152
(targets types.ml)
6253
(deps

0 commit comments

Comments
 (0)