Skip to content

Commit

Permalink
#57 exclude markdown version of the man pages from the dist
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyweston committed May 8, 2018
1 parent 688c5a3 commit 06ab4e8
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions package.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06ab4e8

Please sign in to comment.