3
0
Fork 0
forked from mirrors/nixpkgs

* Enable option to compress multiple spaces in the index.

svn path=/nixpkgs/trunk/; revision=4314
This commit is contained in:
Eelco Dolstra 2005-11-28 14:19:46 +00:00
parent 2748236699
commit d68e567fe3
2 changed files with 7 additions and 2 deletions

View file

@ -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;});

View file

@ -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