added script to sync with yblog
This commit is contained in:
parent
9db5c87d06
commit
c9b36fa0ae
1 changed files with 16 additions and 0 deletions
16
copy-to-yblog.sh
Executable file
16
copy-to-yblog.sh
Executable 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."
|
Loading…
Reference in a new issue