diff --git a/hatenablog/Makefile b/hatenablog/Makefile new file mode 100644 index 00000000..2b86dbc5 --- /dev/null +++ b/hatenablog/Makefile @@ -0,0 +1,2 @@ +all: + @zsh make.zsh diff --git a/hatenablog/make.zsh b/hatenablog/make.zsh new file mode 100644 index 00000000..5548d403 --- /dev/null +++ b/hatenablog/make.zsh @@ -0,0 +1,9 @@ +for js in js/*.js; do + sha=$(cat $js | sha384sum | tr a-f A-F | awk '$0=$1' | basenc -d --base16 | base64) + print -r "" +done + +for css in css/*.css; do + sha=$(cat $css | sha384sum | tr a-f A-F | awk '$0=$1' | basenc -d --base16 | base64) + print -r "" +done