Skip to content

Commit 6fdb655

Browse files
committed
Reworked build.sbt target language list in descriptions to be an unified constant
1 parent c6fe31c commit 6fdb655

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

build.sbt

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import sbt.Keys._
33

44
resolvers += Resolver.sonatypeRepo("public")
55

6+
val targetLangs = "C++/STL, C#, Java, JavaScript, Python, Ruby"
7+
68
lazy val root = project.in(file(".")).
79
aggregate(compilerJS, compilerJVM).
810
settings(
@@ -46,17 +48,18 @@ lazy val compiler = crossProject.in(file(".")).
4648
// implementations create per-package virtual user that we won't use anyway
4749
maintainerScripts in Debian := Map(),
4850

49-
packageSummary in Linux := "compiler to generate binary data parsers in Java / JavaScript / Python / Ruby",
51+
packageSummary in Linux := s"compiler to generate binary data parsers in ${targetLangs}",
5052
packageSummary in Windows := "Kaitai Struct compiler",
5153
packageDescription in Linux :=
52-
"""This is the reference implementation of a compiler for Kaitai Struct (.ksy)
53-
files. It allows to compile them into source code in Java / JavaScript /
54-
Python / Ruby.
55-
.ksy files describe binary data structures in declarative YAML-based
56-
language (in contrast to imperative parsing implementation written in a
57-
single programming language) and allow cross-language, cross-platform data
58-
formats description.""",
59-
packageDescription in Windows := "Compiler to translate Kaitai Struct (.ksy) files into Java / JavaScript / Python / Ruby source code",
54+
s"""This is the reference implementation of a compiler for Kaitai Struct (.ksy)
55+
| files. It allows to compile them into source code in:
56+
| ${targetLangs}.
57+
| .
58+
| .ksy files describe binary data structures in declarative YAML-based
59+
| language (in contrast to imperative parsing implementation written in a
60+
| single programming language) and allow cross-language, cross-platform data
61+
| formats description.""".stripMargin,
62+
packageDescription in Windows := s"Compiler to translate Kaitai Struct (.ksy) files into ${targetLangs} source code",
6063

6164
wixProductLicense := Some(new File("shared/src/windows/License.rtf")),
6265

0 commit comments

Comments
 (0)