added script to sync with yblog

parent 9db5c87d
#!/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."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment