diff options
author | Victor Engmark <victor@engmark.name> | 2021-11-14 15:54:33 +1300 |
---|---|---|
committer | Victor Engmark <victor@engmark.name> | 2021-11-14 16:04:46 +1300 |
commit | 57b496ea98bdbd633c48f16af1c69a196aaf963a (patch) | |
tree | e12cd5e6735aa44ae5725d8210b933de4a1234aa /pkgs/tools/typesetting | |
parent | 90dbec47b7c8eff5262fda73d97335fb29e079fa (diff) | |
download | nixpkgs-57b496ea98bdbd633c48f16af1c69a196aaf963a.tar nixpkgs-57b496ea98bdbd633c48f16af1c69a196aaf963a.tar.gz nixpkgs-57b496ea98bdbd633c48f16af1c69a196aaf963a.tar.bz2 nixpkgs-57b496ea98bdbd633c48f16af1c69a196aaf963a.tar.lz nixpkgs-57b496ea98bdbd633c48f16af1c69a196aaf963a.tar.xz nixpkgs-57b496ea98bdbd633c48f16af1c69a196aaf963a.tar.zst nixpkgs-57b496ea98bdbd633c48f16af1c69a196aaf963a.zip |
misc: Replace tab indentation with spaces
I've tried to be consistent, using four or eight spaces to line up with existing code.
Diffstat (limited to 'pkgs/tools/typesetting')
-rwxr-xr-x | pkgs/tools/typesetting/lout/builder.sh | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/pkgs/tools/typesetting/lout/builder.sh b/pkgs/tools/typesetting/lout/builder.sh index 61459e48b7f..eab37c3c68f 100755 --- a/pkgs/tools/typesetting/lout/builder.sh +++ b/pkgs/tools/typesetting/lout/builder.sh @@ -15,28 +15,28 @@ installDoc () echo "building \`$doc' document..." if [ ! -f "doc/$doc/outfile.ps" ] then - ( PATH="$PWD:$PATH" ; \ - cd "doc/$doc" && lout -r4 -o outfile.ps all ) \ + ( PATH="$PWD:$PATH" ; \ + cd "doc/$doc" && lout -r4 -o outfile.ps all ) \ || return 1 fi - cp "doc/$doc/outfile.ps" "$out/doc/lout/$doc.ps" && \ - ps2pdf -dPDFSETTINGS=/prepress -sPAPERSIZE=a4 \ + cp "doc/$doc/outfile.ps" "$out/doc/lout/$doc.ps" && \ + ps2pdf -dPDFSETTINGS=/prepress -sPAPERSIZE=a4 \ "doc/$doc/outfile.ps" "$out/doc/lout/$doc.pdf" done return 0 } -unpackPhase && \ -cd lout-*.* && \ -cat makefile | \ - sed -e "s|^PREFIX[[:blank:]]*=.*\$|PREFIX = $out|g ; \ - s|^LOUTLIBDIR[[:blank:]]*=.*$|LOUTLIBDIR = \$(PREFIX)/lib/lout|g ; \ - s|^LOUTDOCDIR[[:blank:]]*=.*$|LOUTDOCDIR = \$(PREFIX)/doc/lout|g ; \ - s|^MANDIR[[:blank:]]*=.*$|MANDIR = \$(PREFIX)/man|g" \ - > "$nixMakefile" && \ -mkdir -p "$out/bin" && mkdir -p "$out/lib" \ -mkdir -p "$out/man" && mkdir -p "$out/doc/lout" && \ -make -f "$nixMakefile" CC=cc install installman && \ -installDoc && \ +unpackPhase && \ +cd lout-*.* && \ +cat makefile | \ + sed -e "s|^PREFIX[[:blank:]]*=.*\$|PREFIX = $out|g ; \ + s|^LOUTLIBDIR[[:blank:]]*=.*$|LOUTLIBDIR = \$(PREFIX)/lib/lout|g ; \ + s|^LOUTDOCDIR[[:blank:]]*=.*$|LOUTDOCDIR = \$(PREFIX)/doc/lout|g ; \ + s|^MANDIR[[:blank:]]*=.*$|MANDIR = \$(PREFIX)/man|g" \ + > "$nixMakefile" && \ +mkdir -p "$out/bin" && mkdir -p "$out/lib" \ +mkdir -p "$out/man" && mkdir -p "$out/doc/lout" && \ +make -f "$nixMakefile" CC=cc install installman && \ +installDoc && \ fixupPhase |