2012-09-13 22:29:54 +04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2013-04-11 23:07:16 +04:00
|
|
|
# exit on subprocess errors
|
|
|
|
set -o errexit
|
|
|
|
|
2012-09-20 04:42:36 +04:00
|
|
|
exit_unless_npm_exists() {
|
2012-09-22 00:29:35 +04:00
|
|
|
if ! hash npm 2> /dev/null; then
|
2012-09-20 04:42:36 +04:00
|
|
|
echo "ERROR: Atom requires npm"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
exit_unless_npm_exists
|
2013-03-12 02:59:34 +04:00
|
|
|
|
2013-01-03 23:02:03 +04:00
|
|
|
git submodule --quiet sync
|
|
|
|
git submodule --quiet update --recursive --init
|
2013-05-08 00:39:25 +04:00
|
|
|
|
|
|
|
(cd vendor/apm && npm install .)
|
|
|
|
|
2013-05-18 02:24:09 +04:00
|
|
|
npm install --silent vendor/apm
|
2013-08-14 19:46:53 +04:00
|
|
|
echo ""
|
2013-05-18 02:24:09 +04:00
|
|
|
./node_modules/.bin/apm install --silent
|