24 lines
462 B
Bash
Executable File
24 lines
462 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# c3d2-web $ ./scripts/fahrplan-import.sh
|
|
|
|
cd ./content/static/datenspuren/2011/ || exit 1
|
|
|
|
mkdir .tmp
|
|
cd .tmp
|
|
curl https://cccv.pentabarf.org/DS2011.tar.gz | tar xz
|
|
rm DS2011/style.css
|
|
IFS="
|
|
"
|
|
for f in $(find . -name \*.html)
|
|
do
|
|
sed -e 's/Computersicherheitsworkshop/Computer\­sicher\­heits\­work\­shop/g' \
|
|
-i "$f"
|
|
done
|
|
cp -r DS2011/* ../fahrplan/
|
|
cd ..
|
|
rm -r .tmp
|
|
git add ./fahrplan
|
|
git commit -m 'fahrplan import [auto]'
|
|
|