-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate-all
executable file
·29 lines (22 loc) · 1.43 KB
/
update-all
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
OUTPUT=/dev/null
#OUTPUT=/dev/stdout
cd /srv/www.das-labor.org/bin
# ~/bin/update-gallery
#./update-planet > "$OUTPUT"
#./update-termine > "$OUTPUT"
#../htdoc/ical/parse.sh # messes up links in the one or the other event. HTML is now again generated from the xml
# wget --no-check-certificate -O /srv/www.das-labor.org/htdoc/termine.ics https://anonymous:[email protected]/davical/caldav.php/labor-termine/home/ # get the ical file to publish and parse
# > /dev/null to mute output so we don't get a big mail every day
wget -q -O /srv/www.das-labor.org/htdoc/termine.ics 'https://wiki.das-labor.org/w/Spezial:Semantische_Suche/-5B-5Bev_title::%2B-5D-5D-20-5B-5Bev_start::%2B-5D-5D/-3FEv-20title%3Dsummary/-3FEv-20start%3Dstart/-3FEv-20end%3Dend/-3FEv-20place%3Dlocation/-3FEv-20abstract%3Ddescription/format%3Dicalendar/searchlabel%3DExport-20for-20iCalendar/title%3DAlle-20Termine/description%3DAll-20events/offset%3D0/limit%3D5000' > "$OUTPUT"
./parse-ical > "$OUTPUT"
# update rss & html
cd /srv/www.das-labor.org/bin/parse-labor-wiki-termine
./update-web /srv/www.das-labor.org/htdoc/ > "$OUTPUT"
./update-rss_talks /srv/www.das-labor.org/htdoc/ > "$OUTPUT"
./update-announce /srv/www.das-labor.org/htdoc/ > "$OUTPUT"
cd /srv/www.das-labor.org/bin/
./update-ics-rss-htmlsnippet.rb > "$OUTPUT"
# append timezone after calendar description
sed -e '/X-WR-CALDESC/a X-WR-TIMEZONE:Europe/Berlin' -i \
/srv/www.das-labor.org/htdoc/termine.ics