-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #355 from gforney/master
preliminary incorporation of dem2fds into smokebot
- Loading branch information
Showing
24 changed files
with
298 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@echo off | ||
set paper=SMV_Utilities_Guide | ||
|
||
Title Building %paper% | ||
|
||
git describe --long --dirty > gitinfo.txt | ||
set /p gitrevision=<gitinfo.txt | ||
echo \newcommand^{\gitrevision^}^{%gitrevision%^} > ..\Bibliography\gitrevision.tex | ||
|
||
echo pass 1 | ||
pdflatex -interaction nonstopmode %paper% > %paper%.err | ||
bibtex %paper% > %paper%.err | ||
echo pass 2 | ||
pdflatex -interaction nonstopmode %paper% > %paper%.err | ||
echo pass 3 | ||
pdflatex -interaction nonstopmode %paper% > %paper%.err | ||
|
||
find "! LaTeX Error:" %paper%.err | ||
find "Fatal error" %paper%.err | ||
find "Error:" %paper%.err | ||
|
||
if exist ..\Bibliography\gitrevision.tex erase ..\Bibliography\gitrevision.tex | ||
echo %paper% build complete | ||
pause | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
|
||
# Add LaTeX search path; Paths are ':' separated | ||
export TEXINPUTS=".:../LaTeX_Style_Files:" | ||
|
||
clean_build=1 | ||
GUIDE=SMV_Utilities_Guide | ||
|
||
# Build SMV Utilities Guide | ||
|
||
gitrevision=`git describe --long --dirty` | ||
echo "\\newcommand{\\gitrevision}{$gitrevision}" > ../Bibliography/gitrevision.tex | ||
|
||
pdflatex -interaction nonstopmode $GUIDE &> $GUIDE.err | ||
bibtex $GUIDE &> $GUIDE.err | ||
pdflatex -interaction nonstopmode $GUIDE &> $GUIDE.err | ||
pdflatex -interaction nonstopmode $GUIDE &> $GUIDE.err | ||
|
||
# Scan and report any errors in the LaTeX build process | ||
if [[ `grep -E "Undefined control sequence|Error:|Fatal error|! LaTeX Error:|Paragraph ended before|Missing \\\$ inserted|Misplaced" -I $GUIDE.err | grep -v "xpdf supports version 1.5"` == "" ]] | ||
then | ||
# Continue along | ||
: | ||
else | ||
echo "LaTeX errors detected:" | ||
grep -A 1 -E "Undefined control sequence|Error:|Fatal error|! LaTeX Error:|Paragraph ended before|Missing \\\$ inserted|Misplaced" -I $GUIDE.err | grep -v "xpdf supports version 1.5" | ||
clean_build=0 | ||
fi | ||
|
||
# Check for LaTeX warnings (undefined references or duplicate labels) | ||
if [[ `grep -E "undefined|multiply defined|multiply-defined" -I $GUIDE.err` == "" ]] | ||
then | ||
# Continue along | ||
: | ||
else | ||
echo "LaTeX warnings detected:" | ||
grep -E "undefined|multiply defined|multiply-defined" -I $GUIDE.err | ||
clean_build=0 | ||
fi | ||
|
||
if [[ $clean_build == 0 ]] | ||
then | ||
: | ||
else | ||
echo "SMV Utilities Guide built successfully!" | ||
fi | ||
rm -f ../Bibliography/gitrevision.tex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.