File tree Expand file tree Collapse file tree 7 files changed +44
-13
lines changed
Expand file tree Collapse file tree 7 files changed +44
-13
lines changed Original file line number Diff line number Diff line change 151151 ( depends
152152 ( ocaml ( >= 4 .14) )
153153 dune
154+ cmdliner
155+ mtime
156+ fmt
157+ logs
154158 ( diffast-core ( = :version ) )
155159 ( diffast-api ( = :version ) )
156160 ( diffast-git ( = :version ) )
166170 ( ocaml ( >= 4 .14) )
167171 dune
168172 sedlex
169- mehirLib
173+ menhirLib
170174 ( diffast-misc ( = :version ) )
171175 ( vlt ( >= 0 .2.4) )
172176 )
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ bug-reports: "https://github.com/codinuum/diffast/issues"
1818depends: [
1919 "ocaml" {>= "4.14"}
2020 "dune" {>= "3.17"}
21+ "cmdliner"
22+ "mtime"
23+ "fmt"
24+ "logs"
2125 "diffast-core" {= version}
2226 "diffast-api" {= version}
2327 "diffast-git" {= version}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ depends: [
1919 "ocaml" {>= "4.14"}
2020 "dune" {>= "3.17"}
2121 "sedlex"
22- "mehirLib "
22+ "menhirLib "
2323 "diffast-misc" {= version}
2424 "vlt" {>= "0.2.4"}
2525 "odoc" {with-doc}
Original file line number Diff line number Diff line change 11
2+ (subdir
3+ pkg
4+ (rule
5+ (target v)
6+ (action (write-file %{target} %{version:diffast-api}))
7+ )
8+ )
9+
10+ (subdir
11+ dev
12+ (rule
13+ (target v)
14+ (action
15+ (with-stdout-to %{target} (run git describe --always --dirty))
16+ )
17+ )
18+ )
19+
20+ (rule
21+ (target v)
22+ (enabled_if (<> %{read:pkg/v} ""))
23+ (action (write-file %{target} %{read:pkg/v}))
24+ )
25+
26+ (rule
27+ (target v)
28+ (enabled_if (= %{read:pkg/v} ""))
29+ (action (write-file %{target} %{read-lines:dev/v}))
30+ )
31+
232(rule
333 (target version.ml)
4- (action (run ./genver.sh))
34+ (action
35+ (write-file %{target} "let version=\"%{read:v}\"\nlet copyright=\"Copyright 2010-2025 Codinuum Software Lab <
[email protected] >\"\n")
36+ )
537)
638
739(library
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ let _ =
238238
239239let _ =
240240 if ! show_version_flag then begin
241- printf " Parse/SRC %s\n " Version. version;
241+ printf " Parse/SRC %s\n %s \n " Version. version Version. copyright ;
242242 exit 0
243243 end
244244
You can’t perform that action at this time.
0 commit comments