Tyler Scott | 8546aff | 2015-10-16 17:06:58 -0600 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | if [ ! hash git 2>/dev/null ]; then |
| 4 | echo "git is required for this repo to function properly! Please install it."; |
| 5 | exit 1; |
| 6 | fi |
| 7 | |
| 8 | git submodule init ndn-js && git submodule update |
| 9 | cd ndn-js && ./waf configure && ./waf && cd .. |
| 10 | |
| 11 | if [ ! hash npm 2>/dev/null ]; then |
| 12 | echo "npm is required to build the production site. Only the dev site will be available."; |
| 13 | |
| 14 | else |
| 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 | |
| 25 | fi |
| 26 | |