forked from mirrors/nixpkgs
* Enable option to compress multiple spaces in the index.
svn path=/nixpkgs/trunk/; revision=4314
This commit is contained in:
parent
2748236699
commit
d68e567fe3
|
@ -7,6 +7,7 @@ rec {
|
|||
{ rootFile
|
||||
, generatePDF ? true
|
||||
, extraFiles ? []
|
||||
, compressBlanksInIndex ? true
|
||||
}:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
|
@ -15,7 +16,8 @@ rec {
|
|||
builder = ./run-latex.sh;
|
||||
copyIncludes = ./copy-includes.pl;
|
||||
|
||||
inherit rootFile generatePDF extraFiles;
|
||||
inherit rootFile generatePDF extraFiles
|
||||
compressBlanksInIndex;
|
||||
|
||||
includes = import (findLaTeXIncludes {inherit rootFile;});
|
||||
|
||||
|
|
|
@ -56,7 +56,10 @@ echo
|
|||
|
||||
if test -f $rootNameBase.idx; then
|
||||
echo "MAKING INDEX..."
|
||||
makeindex $rootNameBase.idx
|
||||
if test -n "$compressBlanksInIndex"; then
|
||||
makeindexFlags="$makeindexFlags -c"
|
||||
fi
|
||||
makeindex $makeindexFlags $rootNameBase.idx
|
||||
echo
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue