Compare commits

...
13 Commits
Author SHA1 Message Date
flip 1eea13699f Merge branch 'master' into assignment4 2024-05-05 00:20:20 +02:00
flip 6fbf6273ea pdf build files are now obsolete because of my ci cd pipeline :)
gitea/real_analysis/pipeline/head This commit looks good
2024-05-05 00:16:52 +02:00
flip deaaaa276b Unnecessary sudo
gitea/real_analysis/pipeline/head This commit looks good
2024-05-05 00:12:09 +02:00
flip 549af36a07 Added deploy and updated the readme accordingly
gitea/real_analysis/pipeline/head There was a failure building this commit
2024-05-05 00:01:08 +02:00
flip ce4daadd49 Made latex build quietly
gitea/real_analysis/pipeline/head This commit looks good
2024-05-04 11:42:00 +02:00
flip 8d19df9d53 Finally fixed pdf build script? 2024-05-04 01:48:58 +02:00
flip a28e184552 dpkg was not installed, flips table 2024-04-30 15:00:01 +02:00
flip 9c83a5bb32 Just the ampersand, without the redirection? 2024-04-30 14:58:10 +02:00
flip 2eda317dd7 Ampersand as last parameter might fix the redirect? 2024-04-30 14:55:43 +02:00
flip f7000b4b84 Another double quote on variable name 2024-04-30 14:53:13 +02:00
flip be946462f5 Variables in quotes 2024-04-30 14:51:07 +02:00
flip b089017f69 Forwarding error to std output in bash script now 2024-04-30 14:48:01 +02:00
flip 9cc3641238 Made build script executable 2024-04-23 11:47:27 +02:00
7 changed files with 20 additions and 16 deletions
Vendored
+1
View File
@@ -13,6 +13,7 @@ pipeline {
stage('Deploy') { stage('Deploy') {
steps{ steps{
echo 'Starting deploy step...' echo 'Starting deploy step...'
sh 'cp assignments/main_text.pdf /var/www/zwietering.eu/pdfs/real_analysis.pdf'
} }
} }
} }
+2
View File
@@ -5,3 +5,5 @@ Exercises and maybe (just maybe, like, very probably not) lecture notes on the R
[Course link](https://ocw.mit.edu/courses/18-100a-real-analysis-fall-2020/) [Course link](https://ocw.mit.edu/courses/18-100a-real-analysis-fall-2020/)
The text book is included in the directory root. The `.tex` files can be compiled individually in the corresponding subdirectories or collectively from the assignments directory. I use `pdflatex` with texlive on Arch (through WSL2, [check this guide](https://gist.github.com/ld100/3376435a4bb62ca0906b0cff9de4f94b) on how to do this (why use Ubuntu if you're only going to use the CLI right?)). The text book is included in the directory root. The `.tex` files can be compiled individually in the corresponding subdirectories or collectively from the assignments directory. I use `pdflatex` with texlive on Arch (through WSL2, [check this guide](https://gist.github.com/ld100/3376435a4bb62ca0906b0cff9de4f94b) on how to do this (why use Ubuntu if you're only going to use the CLI right?)).
The complete generated PDF file can be downloaded from [this address](https://zwietering.eu/pdfs/real_analysis.pdf).
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Regular → Executable
+15 -14
View File
@@ -1,23 +1,16 @@
#!/bin/bash #!/bin/bash
# Check if necessary packages are installed
necessary_packages=("pdflatex")
for package in ${necessary_packages}; do
if ! [dpkg -l ${package} > /dev/null]; then
echo "Error: ${package} is not installed."
exit 1
fi
done
# Build all directories # Build all directories
subdirectory_file_name=main subdirectory_file_name=main
cd assignments
for D in *; do for D in *; do
if [ -d "${D}" ]; then if [ "${D}" != "template" ] && [ -d "${D}" ]; then
echo "Building ${D}..." echo "Building ${D}..."
cd ${D} cd "${D}"
pdflatex -interaction=nonstopmode -halt-on-error ${subdirectory_file_name}.tex pdflatex -interaction=batchmode -halt-on-error "${subdirectory_file_name}.tex"
pdflatex -interaction=batchmode -halt-on-error "${subdirectory_file_name}.tex"
cd .. cd ..
fi fi
done done
@@ -26,7 +19,15 @@ done
main_file_name=main_text main_file_name=main_text
echo "Building main PDF..." echo "Building main PDF..."
pdflatex -interaction=nonstopmode -halt-on-error ${main_file_name}.tex pdflatex -interaction=batchmode -halt-on-error "${main_file_name}.tex"
pdflatex -interaction=batchmode -halt-on-error "${main_file_name}.tex"
# Clean up # Clean up
rm -rf *.aux *.log *.out *.toc rm -rf *.aux *.log *.out *.toc
for D in *; do
if [ "${D}" != "template" ] && [ -d "${D}" ]; then
cd "${D}"
rm -rf *.aux *.log *.out *.toc
cd ..
fi
done