diff options
Diffstat (limited to 'tools/compile')
-rwxr-xr-x | tools/compile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/compile b/tools/compile new file mode 100755 index 0000000..b28d1ea --- /dev/null +++ b/tools/compile @@ -0,0 +1,29 @@ +#!/bin/sh +## Automated script for compiling lowdown + +# node_modules is cached by netlify +mkdir -p node_modules + +## lowdown +if [ ! -f node_modules/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 + cd .. +fi + + +## cpio +if [ ! -f node_modules/cpio ]; 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 ../node_modules/cpio_src/bin/cpio +fi |