25 lines
441 B
Bash
25 lines
441 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
DESTINATION=root@static.recycled.cloud:/var/www/
|
||
|
WEBSITE=recycled.cloud
|
||
|
|
||
|
for locale in en fr; do
|
||
|
(cd $locale/; make clean; make all)
|
||
|
done
|
||
|
|
||
|
workdir=$(mktemp -d)
|
||
|
cp -r assets $workdir
|
||
|
for locale in en fr; do
|
||
|
mkdir $workdir/$locale
|
||
|
cp -r $locale/*.html $workdir/$locale
|
||
|
cp -r assets $workdir/$locale
|
||
|
done
|
||
|
cp en/index.html $workdir
|
||
|
|
||
|
sftp -b - "$DESTINATION" <<- EOF
|
||
|
-rm ${WEBSITE:?}/*
|
||
|
put -R ${workdir:?}/* $WEBSITE
|
||
|
EOF
|