Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 40 lines (33 sloc) 0.621 kb
#!/bin/bash
# this is a wicked hack, but whatever.
CONFIGS=()
i=0
while [ $# -gt 0 ]; do
conf="$1"
case $conf in
--help)
echo "./configure --param=value ..."
exit 0
;;
--*)
CONFIGS[$i]="${conf:2}"
;;
*)
CONFIGS[$i]="$conf"
;;
esac
let i++
shift
done
# Pull in submodules, since npm can't work without them.
if [ -f .git ]; then
git submodule update --init
fi
for c in "${CONFIGS[@]}"; do
echo '+node ./bin/npm.js config set "'"$c"'"'
node ./bin/npm.js config set "$c"
done
echo
echo +node ./bin/npm.js config ls
echo
node ./bin/npm.js config ls
Jump to Line
Something went wrong with that request. Please try again.