Commit 9c06bb54 authored by Han-Miru Kim's avatar Han-Miru Kim
Browse files

add sync-pdf script

parent 83efe3b0
# notes
Contains my lecture notes, summaries etc.
# How to use
To keep the repository size small, I will no longer upload pre-compiled files (such as .pdf files) with every commit.
To obtain the .pdf files, you either have to download the ones I upload twice per semester or download the source-code and compile it yourself.
## Pre-compiled
Recommended for all material that belong the the previous semsters (Summer 21).
Go to the [Releases page](https://gitlab.ethz.ch/kimha/notes/-/releases) and download the corresponding file.
## Latest version
To keep the repository size small, this repo won't contain pre-compiled files (such as .pdf files) with every commit.
Instead, you can download the .pdf files from [my personal homepage](https://n.ethz.ch/~kimha) or download the source-code and compile it yourself.
## Compiling it yourself
- Clone this repository
```bash
git clone https://gitlab.ethz.ch/kimha/notes.git
```
- `cd` into into target directory (such as `notes/04/12_Topo/lecture-notes/`) and compile the .pdf yourself.
- To update the local copy, read `man git`
- To update the local copy, do
```bash
git pull
```
......
#!/bin/bash
# copies the main.pdf from current directory into predefined slot
echo "Select destination:"
echo "0: Quit"
echo "1: Commutative Algebra"
echo "2: Algebraic Topology I"
echo "3: Quantum Mechanics I"
host=kimha@slab1.ethz.ch
dir=/nas/kimha/homepage/download/lecture-notes
read number
case $number in
0)
echo "Exiting."
exit 0
;;
1)
filename=05-commutative-algebra.pdf
;;
2)
filename=05-algebraic-topology-i.pdf
;;
3)
filename=05-quantum-mechanics-i.pdf
;;
esac
echo "scp ./main.pdf $host:$dir/$filename"
scp ./main.pdf $host:$dir/$filename
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment