Skip to content

Commit

Permalink
[cleaup] install.sh: removed deprecated Please specify a target comma…
Browse files Browse the repository at this point in the history
…nd, use opa --bundle instead
  • Loading branch information
Frederic Ye committed Dec 3, 2012
1 parent 4640ee3 commit f3db863
Showing 1 changed file with 5 additions and 23 deletions.
28 changes: 5 additions & 23 deletions tools/utils/install.sh
Expand Up @@ -120,32 +120,14 @@ create_wrapper() {
case "$1" in case "$1" in
create) create)
shift shift
if [ -n "$1" ] && ! [ "$1" = "--help" ] && ! [ "$1" = "--name" ] if [ -n "$1" ] && ! [ "$1" = "--help" ] && ! [ "$1" = "--name" ]; then
then OPT="--name $1" OPT="--name $1"
else OPT="$1" else
OPT="$1"
fi fi
shift shift
export NODE_PATH="$NODE_PATH:'$STATIC_PREFIX':'$STDLIB_PREFIX':'$STDLIB_QMLJS_PREFIX'" export NODE_PATH="$NODE_PATH:'$STATIC_PREFIX':'$STDLIB_PREFIX':'$STDLIB_QMLJS_PREFIX'"
opa-create $OPT $@ $MLSTATELIBS/bin/opa-create $OPT $@
;;
bundle)
shift
TARGET=$1
BUNDLE=$TARGET.opa-bundle
if [ -z $TARGET ]; then
echo "Please specify a target"
exit 1
fi
rm -rfv $BUNDLE
mkdir -p $BUNDLE/node_modules
cp $TARGET.js $BUNDLE/
cp -rv ${TARGET}_depends $BUNDLE/
cp -rv '$STATIC_PREFIX'/opa-js-runtime* $BUNDLE/node_modules
cp -rv '$STDLIB_PREFIX'/* $BUNDLE/node_modules
cp -rv '$STDLIB_QMLJS_PREFIX'/* $BUNDLE/node_modules
tar -cvzf $BUNDLE.tar.gz $TARGET.opa-bundle
;; ;;
export) export)
shift shift
Expand Down

0 comments on commit f3db863

Please sign in to comment.