From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 900AF139694 for ; Wed, 31 May 2017 12:32:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ABC4CE0EC7; Wed, 31 May 2017 12:32:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 870CFE0EC7 for ; Wed, 31 May 2017 12:32:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 776BC341726 for ; Wed, 31 May 2017 12:32:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E10297466 for ; Wed, 31 May 2017 12:32:03 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1496097857.e593adfd231d69cbf5e620c2f500f3cb5ca35d53.ulm@gentoo> Subject: [gentoo-commits] proj/pms:master commit in: / X-VCS-Repository: proj/pms X-VCS-Files: Makefile X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: e593adfd231d69cbf5e620c2f500f3cb5ca35d53 X-VCS-Branch: master Date: Wed, 31 May 2017 12:32:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5ffdd632-0026-4b3a-9a54-14520e818566 X-Archives-Hash: 119c32a8d3b7add33b986292e3035294 commit: e593adfd231d69cbf5e620c2f500f3cb5ca35d53 Author: Ulrich Müller gentoo org> AuthorDate: Mon May 29 22:44:17 2017 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Mon May 29 22:44:17 2017 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=e593adfd Makefile: Option for two-sided layout. Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 74b6439..206a7fc 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ LATEXFILES := $(filter-out vc.tex,$(wildcard *.tex)) pms.cls SOURCES = $(LATEXFILES) pms.bib vc vc-git.awk Makefile +TWOSIDE = + # latex chokes on aux files produced by tex4ht, so remove them aux-clean = if grep -q rEfLiNK pms.aux 2>/dev/null; then rm -f *.aux; fi @@ -13,7 +15,11 @@ pms.pdf: $(LATEXFILES) pms.bbl vc.tex set -e; \ while true; do \ pdflatex eapi-cheatsheet; \ - pdflatex pms; \ + if test -z '$(TWOSIDE)'; then \ + pdflatex pms; \ + else \ + pdflatex '\PassOptionsToClass{twoside}{pms}\input{pms}'; \ + fi; \ grep -q 'Warning.*Rerun' eapi-cheatsheet.log pms.log || break; \ done