cassandra: clean up installed documentation

Fixes #28281.
This commit is contained in:
Robert Helgesson 2017-08-16 15:22:27 +02:00
parent 9459dd27ec
commit 4d192a3522
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86

View File

@ -26,6 +26,21 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir $out
mv * $out
# Clean up documentation.
mkdir -p $out/share/doc/${name}
mv $out/CHANGES.txt \
$out/LICENSE.txt \
$out/NEWS.txt \
$out/NOTICE.txt \
$out/javadoc \
$out/share/doc/${name}
if [[ -d $out/doc ]]; then
mv "$out/doc/"* $out/share/doc/${name}
rmdir $out/doc
fi
for cmd in bin/cassandra bin/nodetool bin/sstablekeys \
bin/sstableloader bin/sstableupgrade \
tools/bin/cassandra-stress tools/bin/cassandra-stressd \