build: fix the build, reinstate convert.h (needed outside linux pmda)
[pcp.git] / scripts / build-vector
blob38372c3a6b0b68810302e70bfec19202da1c81ae
1 #!/bin/sh
3 # Build helper script for https://github.com/Netflix/vector/
4 #
6 fail_and_bail()
8 echo "Error: $@"
9 exit 1
12 # sanity checks
13 for command in bower gulp node npm
15 which $command >/dev/null 2>&1 || fail_and_bail "$command not installed"
16 done
18 test -f vector.png -o -f assets/images/vector_owl.png || \
19 fail_and_bail "Not in a Vector source tree?"
21 rm -rf node_modules 2>/dev/null
22 npm install || fail_and_bail "npm install failed in" `pwd`
23 bower install || fail_and_bail "bower install failed in" `pwd`
24 gulp build || fail_and_bail "gulp build failed in" `pwd`