Skip to content
Snippets Groups Projects
Commit 16f04d0d authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Datei mit allen Folien, update-Skript für README.md

parent 37cb1070
No related branches found
No related tags found
No related merge requests found
README: gcc für verschiedene Betriebssysteme
...@@ -20,6 +20,7 @@ Vortragsfolien: ...@@ -20,6 +20,7 @@ Vortragsfolien:
* [09.10.2017: Einführung, Einführung in C (bis Schleifen)](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/20171009/hp-20171009.pdf) * [09.10.2017: Einführung, Einführung in C (bis Schleifen)](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/20171009/hp-20171009.pdf)
* [16.10.2017: Ergänzungen zu printf() und scanf(), Seiteneffekte, Funktionen](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/20171016/hp-20171016.pdf) * [16.10.2017: Ergänzungen zu printf() und scanf(), Seiteneffekte, Funktionen](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/20171016/hp-20171016.pdf)
* [23.10.2017: Zeiger, Arrays und Strings, Strukturen, Dateien und Fehlerbehandlung](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/20171023/hp-20171023.pdf) * [23.10.2017: Zeiger, Arrays und Strings, Strukturen, Dateien und Fehlerbehandlung](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/20171023/hp-20171023.pdf)
* [alle in 1 Datei](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/hp-slides-2017ws.pdf)
Übungsaufgaben: Übungsaufgaben:
--------------- ---------------
...@@ -67,5 +68,5 @@ See the file [common/README](https://gitlab.cvh-server.de/pgerwinski/hp/raw/mast ...@@ -67,5 +68,5 @@ See the file [common/README](https://gitlab.cvh-server.de/pgerwinski/hp/raw/mast
* [common – common files for lecture notes and slides](https://gitlab.cvh-server.de/pgerwinski/hp/tree/master/common) * [common – common files for lecture notes and slides](https://gitlab.cvh-server.de/pgerwinski/hp/tree/master/common)
* [script – lecture notes](https://gitlab.cvh-server.de/pgerwinski/hp/tree/master/script) * [script – lecture notes](https://gitlab.cvh-server.de/pgerwinski/hp/tree/master/script)
* [201????? – slides and examples](https://gitlab.cvh-server.de/pgerwinski/hp/tree/master) * [201????? – slides and examples](https://gitlab.cvh-server.de/pgerwinski/hp/tree/master)
* [hp-slides-2016ws.pdf – all slides in 1 file](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/hp-slides-2017ws.pdf) * [hp-slides-2017ws.pdf – all slides in 1 file](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/hp-slides-2017ws.pdf)
* [branch 2016ws – complete teaching materials from winter semester 2016–17](https://gitlab.cvh-server.de/pgerwinski/hp/tree/2016ws) * [branch 2016ws – complete teaching materials from winter semester 2016–17](https://gitlab.cvh-server.de/pgerwinski/hp/tree/2016ws)
File added
update 0 → 100755
#!/bin/bash
sem=2017ws
course=hp
date_mask="201[78][01][0-9][0-3][0-9]"
time_mask="[0-2][0-9][0-5][0-9][0-5][0-9]"
base_url="https://gitlab.cvh-server.de/pgerwinski/$course/raw/master/"
pattern="README:"
if pdfjam --papersize "{362.835pt,272.126pt}" -o hp-slides-$sem.pdf \
$date_mask/hp-$date_mask.pdf > /dev/null 2> pdfjam.err; then
rm pdfjam.err
else
cat pdfjam.err
rm pdfjam.err
exit 1
fi
readme_old=README.md
readme=README-NEW.md
collect ()
{
if [ "$1" = "--no-date" ]; then
show_date=false
shift
else
show_date=true
fi
headline="$1"; shift
source_suffix="$1"; shift
target_suffix="$1"; shift
underline=$(echo "$headline" | sed -e 's/./-/g')
echo >> $readme
echo "$headline" >> $readme
echo "$underline" >> $readme
for f in "$@"; do
description=$(grep -m 1 "$pattern" "$f" | sed -e "s/^.*$pattern *//")
if $show_date; then
y=$(echo $f | cut -b 1-4)
m=$(echo $f | cut -b 5-6)
d=$(echo $f | cut -b 7-8)
date="$d.$m.$y: "
else
date=""
fi
url="$base_url"$(echo $f | sed -e "s/\.$source_suffix$/.$target_suffix/")
echo " * [$date$description]($url)" >> $readme
done
}
cat > $readme << EOF
Hardwarenahe Programmierung
===========================
Lehrveranstaltung im Wintersemester 2017/18
Hochschule Bochum, Campus Velbert/Heiligenhaus
Prof. Dr. rer. nat. Peter Gerwinski
Copyright © 2012–2017 Peter Gerwinski
**Diese Lehrmaterialien sind freie Software.**
Sie dürfen diese gemäß den jeweils angegebenen Lizenzen
([CC-BY-SA 3.0](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/common/CC-BY-SA-3.0),
[GNU GPL 3+](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/common/GNU-GPL-3),
[modified BSD License](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/common/BSD-MODIFIED))
studieren, kopieren, modifizieren und/oder weitergeben.
Für Details siehe [common/README](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/common/README).
EOF
collect "Vortragsfolien:" tex pdf $date_mask/hp-$date_mask.tex
cat >> $readme << EOF
* [alle in 1 Datei](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/hp-slides-2017ws.pdf)
EOF
collect "Übungsaufgaben:" tex pdf $date_mask/hp-uebung-$date_mask.tex
collect "Tafelbilder:" txt jpg $date_mask/photo-$date_mask-$time_mask.txt
collect --no-date "Praktikumsunterlagen:" tex pdf $date_mask/hp-$sem-p[1-4].tex
cat >> $readme << EOF
Skript:
-------
* [Hardwarenahe Programmierung](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/script/hp-2017ws.pdf)
Original-Materialien einschließlich Beispiel-Programme und LaTeX-Quelltexte:
----------------------------------------------------------------------------
* [common – gemeinsame Dateien für Skript und Vortragsfolien](https://gitlab.cvh-server.de/pgerwinski/hp/tree/master/common)
* [script – Skript zur Lehrveranstaltung](https://gitlab.cvh-server.de/pgerwinski/hp/tree/master/script)
* [201????? – Vortragsfolien und Beispiele](https://gitlab.cvh-server.de/pgerwinski/hp/tree/master)
* [branch 2016ws – vollständige Lehrmaterialien vom Wintersemester 2016/17](https://gitlab.cvh-server.de/pgerwinski/hp/tree/2016ws)
Low-Level Programming
=====================
Course in winter semester 2017–18
Bochum University of Applied Sciences, Campus Velbert/Heiligenhaus
Prof. Dr. rer. nat. Peter Gerwinski
Copyright © 2012–2017 Peter Gerwinski
**These teaching materials are Free Software.**
You may study, copy, modify, and/or distribute them
according to their respective licences
([CC-BY-SA 3.0](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/common/CC-BY-SA-3.0),
[GNU GPL 3+](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/common/GNU-GPL-3),
[modified BSD License](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/common/BSD-MODIFIED)).
See the file [common/README](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/common/README) for details.
* [common – common files for lecture notes and slides](https://gitlab.cvh-server.de/pgerwinski/hp/tree/master/common)
* [script – lecture notes](https://gitlab.cvh-server.de/pgerwinski/hp/tree/master/script)
* [201????? – slides and examples](https://gitlab.cvh-server.de/pgerwinski/hp/tree/master)
* [hp-slides-2017ws.pdf – all slides in 1 file](https://gitlab.cvh-server.de/pgerwinski/hp/raw/master/hp-slides-2017ws.pdf)
* [branch 2016ws – complete teaching materials from winter semester 2016–17](https://gitlab.cvh-server.de/pgerwinski/hp/tree/2016ws)
EOF
if diff -wu $readme_old $readme; then
rm $readme
else
echo -n "Press ENTER to overwrite $readme_old, ^C to abort (keeping $readme) "
read junk
mv $readme $readme_old
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment