X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/build/build-bootstrap.sh diff --git a/build/build-bootstrap.sh b/build/build-bootstrap.sh new file mode 100755 index 00000000..b482c144 --- /dev/null +++ b/build/build-bootstrap.sh @@ -0,0 +1,24 @@ +CURRENT_DIR="$(dirname $0)" +cd ${CURRENT_DIR} + +JSBUILDER_PATH="../jsbuilder/JSBuilder.sh" + +# Build Ext.Loader paths to platform for dynamic loading +UNAME="$(uname)" +ARGUMENTS=$* +JSBUILDER_DIRNAME="$(dirname $JSBUILDER_PATH)" +if [ $UNAME = "Darwin" ] ; then + OS="mac" +elif [ ${UNAME%%_*} = "CYGWIN" ] ; then + OS="win" +elif [ ${UNAME%%32*} = "MINGW" ] ; then + OS="win" +elif [ ${UNAME%%64*} = "MINGW" ] ; then + OS="win" +else + OS="linux" +fi +JSDB_PATH="${JSBUILDER_DIRNAME}/jsdb/${OS}" +BUILD_BOOTSTRAP_DATA_CMD="${JSDB_PATH}/jsdb build-bootstrap-data.js ../bootstrap ${OS}" + +${BUILD_BOOTSTRAP_DATA_CMD}