diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-03-14 22:29:54 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-03-14 22:29:54 +0100 |
commit | d1f81962f6a8552b31b2e80ee2e0f9e93ae56112 (patch) | |
tree | e3696181e6087eebafa28cbea36c2208ba28e452 /tools | |
parent | 01e289563a3ad9cd770d98502280118f6986557c (diff) | |
download | kronika-d1f81962f6a8552b31b2e80ee2e0f9e93ae56112.tar.gz kronika-d1f81962f6a8552b31b2e80ee2e0f9e93ae56112.zip |
Use jekyll-cache plugin
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/compile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/compile b/tools/compile index a38dd71..baf9fd0 100755 --- a/tools/compile +++ b/tools/compile @@ -1,29 +1,29 @@ #!/bin/sh ## Automated script for compiling lowdown -# node_modules is cached by netlify -mkdir -p node_modules +# jekyll-cache is cached by netlify plugin +mkdir -p .jekyll-cache ## lowdown -if [ ! -f node_modules/lowdown ]; then +if [ ! -f .jekyll-cache/lowdown ]; then wget https://kristaps.bsd.lv/lowdown/snapshots/lowdown.tar.gz tar xf lowdown.tar.gz cd lowdown-* ./configure make - cp lowdown ../node_modules + cp lowdown ../.jekyll-cache cd .. fi ## cpio -if [ ! -d node_modules/cpio_src ]; then +if [ ! -d .jekyll-cache/cpio_src ]; then wget https://ftp.gnu.org/gnu/cpio/cpio-2.13.tar.gz tar xf cpio-2.13.tar.gz cd cpio-2.13 ./configure --prefix=$PWD/out make make install - cp -r out ../node_modules/cpio_src - ln -s ../node_modules/cpio_src/bin/cpio ../node_modules/cpio + cp -r out ../.jekyll-cache/cpio_src + ln -s ../.jekyll-cache/cpio_src/bin/cpio ../.jekyll-cache/cpio fi |