From 06ab4e893ef3cc95833bb2e70d42cc5a376669a0 Mon Sep 17 00:00:00 2001 From: Toby Date: Mon, 30 Apr 2018 22:30:41 +0100 Subject: [PATCH] #57 exclude markdown version of the man pages from the dist --- package.sbt | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/package.sbt b/package.sbt index dd068a8..2935113 100644 --- a/package.sbt +++ b/package.sbt @@ -20,24 +20,23 @@ linuxPackageMappings in Debian += packageDirectoryAndContentsMapping( mappings in (Compile, packageDoc) := Seq() mappings in (Compile, packageSrc) := Seq() -//linuxPackageMappings := { -// val mappings = linuxPackageMappings.value -// mappings map { mapping => -// val filtered = mapping.mappings filter { -// case (file, name) if file.getParent == "man1" => name.endsWith(".txt") -// case (file, name) if file.getParent == "man1" => name.endsWith(".md") -// case _ => false -// } -// mapping.copy(mappings = filtered) -// } filter { -// _.mappings.nonEmpty -// } -//} +linuxPackageMappings := { + val mappings = linuxPackageMappings.value + mappings map { mapping => + val filtered = mapping.mappings filter { + case (file, _) => !(file.getName == "temperature-machine.1.md") + case _ => true + } + mapping.copy(mappings = filtered) + } filter { + _.mappings.nonEmpty + } +} // filter out jar files from the list of generated files mappings in Universal := (mappings in Universal).value. filter { - case (_, name) => ! name.endsWith(".jar") + case (_, name) => !name.endsWith(".jar") } // append the proguard jar file