From 4f376e9f27209fb5a69addcc56a37abe8fb8ef01 Mon Sep 17 00:00:00 2001
From: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Date: Tue, 10 May 2022 01:46:37 +0200
Subject: initialize.mk: Git call in variable works with LD_LIBRARY_PATH

Until now, the '$(project-commit-hash)' Make variable of 'initialize.mk'
simply called 'git' to find the commit hash. However, due to one of the
recent software updates, we noticed that this command is no longer working
(and the project commit hash wasn't getting printed in the PDF)!  The
problem was that Maneage's Git, couldn't find the 'libiconv' library that
it was built with.

With this commit, the '$(shell' command that calls Git, first exports
'LD_LIBRARY_PATH' to Maneage's software build directory. As a result, the
Git command can work and will report the commit as a LaTeX macro to be used
in the paper. To avoid relying on PATH outside of Make recipes, we now also
directly call the Git executable with Maneage.

Some other minor issues have been found and fixed in this commit:

 - README-hacking.md: some minor edits and typo corrections.

 - initialize.mk: the '$(curdir)' variable is now used in several places
   that we were calling 'pwd'.

 - versions.conf: 'xlsxio-version' now included with other programs. Until
   now it was commented because GCC 11.1.0 had issues with it. However, GCC
   11.2.0 doesn't have a problem any more, so it has been returned to the
   list of all high-level programs.

 - xorg.mk: used same format to comment recipe lines as the other Makefiles
   (a '#' followed by a TAB).

 - preamble-pgfplots.tex: lines to comment for building an EPS figure with
   PGFPlots have been re-formatted to be more human-readable.
---
 tex/src/preamble-pgfplots.tex | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

(limited to 'tex/src/preamble-pgfplots.tex')

diff --git a/tex/src/preamble-pgfplots.tex b/tex/src/preamble-pgfplots.tex
index 75119d6..c200845 100644
--- a/tex/src/preamble-pgfplots.tex
+++ b/tex/src/preamble-pgfplots.tex
@@ -109,13 +109,15 @@
 %% Uncomment the following lines for EPS and PS images. Note that you still
 %% have to use the 'pdflatex' executable and also add a '[dvips]' option to
 %% graphicx.
-
-%% \tikzset{external/system call={rm -f "\image".eps "\image".ps
-%% "\image".dvi; latex \tikzexternalcheckshellescape -halt-on-error
-%% -interaction=batchmode -jobname "\image" "\texsource";
-%% dvips -o "\image".ps "\image".dvi;
-%% ps2eps "\image.ps"}}
-
+%%\tikzset{
+%%  external/system call={
+%%    rm -f "\image".eps "\image".ps "\image".dvi;
+%%    latex \tikzexternalcheckshellescape -halt-on-error
+%%          -interaction=batchmode -jobname "\image" "\texsource";
+%%    dvips -o "\image".ps "\image".dvi;
+%%    ps2eps "\image.ps"
+%%  }
+%%}
 
 
 
-- 
cgit v1.2.1

