about summary refs log tree commit diff
path: root/tools/compile
blob: baf9fd0aec7a80f847a827dd9070cd6ca55d5484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
## Automated script for compiling lowdown

# jekyll-cache is cached by netlify plugin
mkdir -p .jekyll-cache

## lowdown
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 ../.jekyll-cache
  cd ..
fi


## cpio
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 ../.jekyll-cache/cpio_src
  ln -s ../.jekyll-cache/cpio_src/bin/cpio ../.jekyll-cache/cpio
fi