improved install_ewf.sh , and removed usage of deleted router.ecf

This commit is contained in:
Jocelyn Fiat
2012-06-18 02:24:47 -07:00
parent 1260ebf999
commit 0217083d79
2 changed files with 23 additions and 2 deletions

View File

@@ -21,7 +21,6 @@
<library name="default_nino" location="..\..\library\server\wsf\default\nino-safe.ecf" readonly="false" use_application_options="true"/>
<library name="encoder" location="..\..\library\text\encoder\encoder-safe.ecf" readonly="false"/>
<library name="http" location="../../library/network/protocol/http/http-safe.ecf" readonly="false"/>
<library name="router" location="..\..\library\server\request\router\router-safe.ecf" readonly="false"/>
<library name="testing" location="$ISE_LIBRARY\library\testing\testing-safe.ecf"/>
<library name="uri_template" location="../../library/text/parser/uri_template/uri_template-safe.ecf" readonly="false"/>
<library name="wsf" location="..\..\library\server\wsf\wsf-safe.ecf" readonly="false" use_application_options="true"/>

View File

@@ -19,6 +19,11 @@ COPYCMD() {
fi
fi
}
COPYCMDIFMISSING() {
if [ ! -d "$2" ]; then
COPYCMD $1 $2
fi
}
if [ -z "$1" ]; then
echo ERROR: please provide as argument the installation directory
@@ -44,6 +49,7 @@ COPYCMD $TMP_DIR/library/text/encoder $TMP_TARGET_DIR/contrib/library/web/framew
echo Install examples
mkdir -p $TMP_TARGET_DIR/examples
COPYCMD $TMP_DIR/examples $TMP_TARGET_DIR/examples/ewf
COPYCMD $TMP_DIR/precomp $TMP_TARGET_DIR/examples/ewf_precomp
echo Install library: error
mkdir -p $TMP_TARGET_DIR/library/utility/general
@@ -62,6 +68,22 @@ echo Install contrib library: nino
mkdir -p $TMP_TARGET_DIR/contrib/library/network/server
COPYCMD $TMP_DIR/contrib/library/network/server/nino $TMP_TARGET_DIR/contrib/library/network/server/nino
echo Install json if missing
mkdir -p $TMP_TARGET_DIR/contrib/library/text/parser
COPYCMDIFMISSING $TMP_DIR/contrib/library/text/parser/json $TMP_TARGET_DIR/contrib/library/text/parser/json
echo Install cURL if missing
mkdir -p $TMP_TARGET_DIR/contrib/library/network
COPYCMDIFMISSING $TMP_DIR/contrib/ise_library/cURL $TMP_TARGET_DIR/contrib/library/network/cURL
echo Install eapml if missing
mkdir -p $TMP_TARGET_DIR/contrib/library/math
COPYCMDIFMISSING $TMP_DIR/contrib/ise_library/math/eapml $TMP_TARGET_DIR/contrib/library/math/eapml
echo Install eel is missing
mkdir -p $TMP_TARGET_DIR/contrib/library/text/encryption
COPYCMDIFMISSING $TMP_DIR/contrib/ise_library/text/encryption/eel $TMP_TARGET_DIR/contrib/library/text/encryption/eel
cd $TMP_TARGET_DIR
echo ecf_updater
$TMP_CWD/bin/ecf_updater --force --backup --verbose --diff --eiffel_library .
$TMP_CWD/bin/ecf_updater --force --backup --verbose --diff $2 $3 $4 $5 $6 $7 .