-
Notifications
You must be signed in to change notification settings - Fork 75
/
setup.sh
executable file
·44 lines (41 loc) · 1.07 KB
/
setup.sh
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
set -e
if [ "${1}" == "-h" ] || [ "${1}" == "--help" ]; then
echo "Setup and run Jekyll"
echo ""
echo "Usage: ${0} [option]"
echo ""
echo "Options:"
echo "-d, --doxygen Build Doxygen documentation."
echo ""
exit 0
fi
if [ ! -d .bundle ]; then
gem update --user-install
gem install bundler --user-install
# bundle config set path '.bundle'
bundle install --path .bundle
fi
if [ "${1}" == "-d" ] || [ "${1}" == "--doxygen" ]; then
if [ ! -d _jack1 ]; then
git clone --recursive [email protected]:jackaudio/jack1 _jack1
fi
pushd _jack1
git pull && git submodule update
if [ ! -f configure ]; then
./autogen.sh
fi
if [ ! -f Makefile ]; then
./configure \
--enable-force-install \
--prefix=/usr \
--disable-alsa \
--disable-firewire
fi
rm -rf doc/reference doc/reference.doxygen
make -j $(nproc)
popd
rm -rf api
mv _jack1/doc/reference/html api
fi
bundle exec jekyll serve --watch --host=0.0.0.0