File tree Expand file tree Collapse file tree 4 files changed +15
-10
lines changed
Expand file tree Collapse file tree 4 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ LSST_Observing_Strategy_White_Paper.pdf
2121# *.ps
2222# *.eps
2323# *.pdf
24- version.tex
2524
2625# # Bibliography auxiliary files (bibtex/biblatex/biber):
2726* .bbl
Original file line number Diff line number Diff line change 3838{\Large with support from the LSST Project. }\\
3939\vspace *{\stretch {1}}
4040
41- \input {version .tex }
41+ \input {thisversion .tex }
4242
4343\end {center }
4444\end {titlepage }
Original file line number Diff line number Diff line change @@ -78,16 +78,15 @@ set commit_url = "https://github.com/LSSTScienceCollaborations/ObservingStrategy
7878set version = " ${version} .${short_SHA} "
7979
8080# Write tex file for input into paper:
81- set texfile = " version.tex"
81+ set texfile = " thisversion.tex"
82+ set template = " version.tex"
8283\r m -f $texfile ; touch $texfile
8384
84- echo " \begin{center}{" >> $texfile
85- echo " {\large\bf Version ${version} }\\ " >> $texfile
86- echo " \vspace*{\stretch{0.1}}" >> $texfile
87- echo " Most recent commit: \href{${commit_url} }{\texttt{$short_SHA }}\\ " >> $texfile
88- echo " \vspace*{\stretch{0.1}}" >> $texfile
89- echo " (${date} )}\\ " >> $texfile
90- echo " \end{center}" >> $texfile
85+ cat $template | \
86+ sed s%XX%" ${version} " %g | \
87+ sed s%URL%" ${commit_url} " %g | \
88+ sed s%SHA%" ${short_SHA} " %g | \
89+ sed s%DATE%" ${date} " %g > $texfile
9190
9291cat $texfile
9392
Original file line number Diff line number Diff line change 1+ \begin {center }{
2+ {\large\bf Version XX}\\
3+ \vspace *{\stretch {0.1}}
4+ Most recent commit: \href {URL}{\texttt {SHA }}\\
5+ \vspace *{\stretch {0.1}}
6+ (DATE)}\\
7+ \end {center }
You can’t perform that action at this time.
0 commit comments