summaryrefslogtreecommitdiff
path: root/docs/landing/build
blob: aa77cf96e6502bc783e13d327c5ef69e71157034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

function exe_cmd() 
{
    echo $1
    eval $1
}

# build sites
exe_cmd "jekyll build"
if [ ! -d '_site' ];then
    echo "not content to be published!"
    exit
fi

# install sites
exe_cmd "cp -r _site/cn .."
exe_cmd "cp -r _site/assets/* ../assets/"
exe_cmd "cp -r _site/pages .."
exe_cmd "cp _site/index.html ../landing.html"
exe_cmd "rm -rf _site"