All scripts in one repository
This commit is contained in:
parent
a0a86492ee
commit
9f9304d6aa
61 changed files with 6668 additions and 681 deletions
17
buildpdf/LICENSE
Normal file
17
buildpdf/LICENSE
Normal file
|
@ -0,0 +1,17 @@
|
|||
COPYRIGHT (c) 2015 mmk2410
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
32
buildpdf/buildpdf.sh
Executable file
32
buildpdf/buildpdf.sh
Executable file
|
@ -0,0 +1,32 @@
|
|||
#!/bin/bash
|
||||
# A script for automatically creating PDf files from a latex document
|
||||
# You can set the amounts of builds and the time between these builds
|
||||
# Usage: ./buildpdf.sh filename [build amount] [time between builds in s]
|
||||
# Marcel Michael Kapfer
|
||||
# 6th January 2015
|
||||
# GNU GPL v3.0 -> Feel free to re-distribute it or fork it
|
||||
if [[ -z "$1" ]]; then
|
||||
echo "Usage: ./buildpdf.sh filename [build amount] [time between builds in s]"
|
||||
exit 1
|
||||
else
|
||||
filename=$1
|
||||
fi
|
||||
if [[ -z "$2" ]]; then
|
||||
builds=1
|
||||
else
|
||||
builds=$2
|
||||
fi
|
||||
if [[ -z "$3" ]]; then
|
||||
sleeptime=120
|
||||
else
|
||||
sleeptime=$3
|
||||
fi
|
||||
for ((i=1; i<=$builds; ++i)) ;
|
||||
do
|
||||
pdflatex $filename
|
||||
echo "Build $i ready"
|
||||
if (( i < builds )); then
|
||||
echo "Waiting $sleeptime seconds - then build again"
|
||||
sleep $sleeptime
|
||||
fi
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue