blob: 94690a33fd4b3bf79eba57c278496e1d745a191f [file] [log] [blame]
Tyler Scott8546aff2015-10-16 17:06:58 -06001#!/bin/sh
2
3if [ ! hash git 2>/dev/null ]; then
4 echo "git is required for this repo to function properly! Please install it.";
5 exit 1;
6fi
7
8git submodule init ndn-js && git submodule update
9cd ndn-js && ./waf configure && ./waf && cd ..
10
11if [ ! hash npm 2>/dev/null ]; then
12 echo "npm is required to build the production site. Only the dev site will be available.";
13
14else
15
16 if [ ! hash gulp 2>/dev/null ]; then
17 npm install -g gulp
18 npm install
19 fi
20
21 npm upgrade
22
23 gulp
24
25fi
26