mirror of
https://github.com/netz39/www.netz39.de.git
synced 2025-01-18 20:10:12 +01:00
Merge pull request #132 from netz39/events/2024-07-05_softwerke_stammtisch.md
Events/2024 07 05 softwerke stammtisch.md
This commit is contained in:
commit
f7730881d1
3 changed files with 89 additions and 1 deletions
16
_events/2024/2024-07-05_softwerke_stammtisch.md
Normal file
16
_events/2024/2024-07-05_softwerke_stammtisch.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
layout: event
|
||||||
|
title: "Softwerke-Stammtisch"
|
||||||
|
event:
|
||||||
|
start: 2024-07-05 19:30:00
|
||||||
|
end: 2024-07-05 21:30:00
|
||||||
|
author: softwerke
|
||||||
|
---
|
||||||
|
|
||||||
|
Am Freitag, den 5. Juli 2024, findet der Stammtisch des Softwerke Magdeburg e. V. bei uns im Space statt!
|
||||||
|
|
||||||
|
Thema: "Freie Software – ab wann ist sie wirklich frei?"
|
||||||
|
Wir möchten über Lizenzen und verschiedene Definitionen von FOSS (Free and Open Source Software) diskutieren.
|
||||||
|
|
||||||
|
Kommt vorbei und diskutiert mit uns über die spannenden Facetten freier Software!
|
||||||
|
|
|
@ -5,8 +5,9 @@
|
||||||
```bash
|
```bash
|
||||||
cd tools
|
cd tools
|
||||||
python3 generate_stammtisch_events.py
|
python3 generate_stammtisch_events.py
|
||||||
Enter the year: 2024
|
|
||||||
```
|
```
|
||||||
|
> Enter the year: 2024
|
||||||
|
|
||||||
Output:
|
Output:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -28,3 +29,27 @@ Markdown file '2024-11-06_n39_stammtisch.md' generated successfully in the _even
|
||||||
Markdown file '2024-11-27_n39_stammtisch.md' generated successfully in the _events folder!
|
Markdown file '2024-11-27_n39_stammtisch.md' generated successfully in the _events folder!
|
||||||
Markdown file '2024-12-18_n39_stammtisch.md' generated successfully in the _events folder!
|
Markdown file '2024-12-18_n39_stammtisch.md' generated successfully in the _events folder!
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Softwerke Stammtisch Event erzeugen
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd tools
|
||||||
|
./generate_softwerke_stammtisch.sh
|
||||||
|
```
|
||||||
|
> When is the next Stammtisch? (YYYY-MM-DD)
|
||||||
|
|
||||||
|
> 2024-07-05
|
||||||
|
|
||||||
|
Output:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
Zu neuem Branch 'events/2024-07-05_softwerke_stammtisch.md' gewechselt
|
||||||
|
[events/2024-07-05_softwerke_stammtisch.md 6a22bef] Add event for 2024-07-05
|
||||||
|
1 file changed, 10 insertions(+)
|
||||||
|
create mode 100644 _events/2024/2024-07-05_softwerke_stammtisch.md
|
||||||
|
```
|
||||||
|
|
||||||
|
Branch veröffentlichen:
|
||||||
|
```bash
|
||||||
|
git push origin events/2024-07-05_softwerke_stammtisch.md
|
||||||
|
```
|
47
tools/generate_softwerke_stammtisch.sh
Executable file
47
tools/generate_softwerke_stammtisch.sh
Executable file
|
@ -0,0 +1,47 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
git checkout main > /dev/null
|
||||||
|
git pull origin main || exit 1
|
||||||
|
|
||||||
|
# If no argument is supplied ask for the date of the next Stammtisch
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
echo "When is the next Stammtisch? (YYYY-MM-DD)"
|
||||||
|
read date
|
||||||
|
else
|
||||||
|
date=$1
|
||||||
|
echo "Using date $date"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Parse the date
|
||||||
|
year=$(echo $date | cut -d'-' -f1)
|
||||||
|
month=$(echo $date | cut -d'-' -f2)
|
||||||
|
day=$(echo $date | cut -d'-' -f3)
|
||||||
|
dow=$(date -d $date +%A)
|
||||||
|
Month=$(date -d $date +%B)
|
||||||
|
|
||||||
|
root_dir=`git rev-parse --show-toplevel`
|
||||||
|
filename="$year-$month-${day}_softwerke_stammtisch.md"
|
||||||
|
|
||||||
|
# Create a new branch. delete it if it already exists
|
||||||
|
git branch -D "events/$filename" > /dev/null 2>&1
|
||||||
|
git checkout -b "events/$filename" > /dev/null || exit 1
|
||||||
|
|
||||||
|
# Create the new file
|
||||||
|
cat > "$root_dir/_events/$year/$filename" <<EOF
|
||||||
|
---
|
||||||
|
layout: event
|
||||||
|
title: "Softwerke-Stammtisch"
|
||||||
|
event:
|
||||||
|
start: ${date} 19:30:00
|
||||||
|
end: ${date} 21:30:00
|
||||||
|
author: softwerke
|
||||||
|
---
|
||||||
|
|
||||||
|
Am ${dow} den ${day#"${day%%[!0]*}"}. ${Month} ${year} findet der Stammtisch der Softwerke Magdeburg e. V. bei uns im Space statt!
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# Add the file to git
|
||||||
|
git add "$root_dir/_events/$year/$filename" || exit 1
|
||||||
|
|
||||||
|
# Commit the file
|
||||||
|
git commit -m "Add event for $date" || exit 1
|
Loading…
Reference in a new issue