added script to sync with yblog

This commit is contained in:
Yann Esposito (Yogsototh) 2017-02-28 13:39:27 +01:00
parent 9db5c87d06
commit c9b36fa0ae
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

16
copy-to-yblog.sh Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env zsh
yblogdir=../yblog
err() { print -- $* >&2; exit 1}
[[ -e $yblogdir ]] || err "Can't find $yblogdir"
print -- "Generating ymd file"
./create_ymd.sh > $yblogdir/multi/blog/Haskell-the-Hard-Way.md
for lang in fr en; do
print -- "Copying LHS files ($lang)"
rsync -amv --include '*/' --include='*.lhs' --exclude='*' . $yblogdir/content/Scratch/${lang}/blog/Haskell-the-Hard-Way/code/
done
print -- "Don't forget to publish the change."