diff options
author | isaacs <i@izs.me> | 2011-05-13 02:36:38 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-05-13 02:39:07 +0400 |
commit | 9e218186803cde0f5b5fd88ebadc3c9c5d8f3b85 (patch) | |
tree | 72bfd94bc9411b1d02bfff908498694c6f6ef91c /configure | |
parent | aa0685e625438f5e5141b20da1b5c5b1e95059a0 (diff) |
misspelled configure
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..c44f06467 --- /dev/null +++ b/configure @@ -0,0 +1,34 @@ +#!/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 + +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 |