Install script does the same on Windows and Linux
This commit is contained in:
@@ -45,11 +45,11 @@ goto start
|
||||
|
||||
:start
|
||||
echo Install framework ewf
|
||||
mkdir %TMP_TARGET_DIR%\contrib\library\web\framework\ewf\ewsgi
|
||||
mkdir %TMP_TARGET_DIR%\contrib\library\web\framework\ewf
|
||||
echo Install library: ewf/ewsgi
|
||||
%COPYCMD% %TMP_DIR%\library\server\ewsgi %TMP_TARGET_DIR%\contrib\library\web\framework\ewf\ewsgi
|
||||
echo Install library: ewf/libfcgi
|
||||
%COPYCMD% %TMP_DIR%\library\server\libfcgi %TMP_TARGET_DIR%\\contrib\library\web\framework\ewf\libfcgi
|
||||
%COPYCMD% %TMP_DIR%\library\server\libfcgi %TMP_TARGET_DIR%\contrib\library\web\framework\ewf\libfcgi
|
||||
echo Install library: ewf/wsf
|
||||
%COPYCMD% %TMP_DIR%\library\server\wsf %TMP_TARGET_DIR%\contrib\library\web\framework\ewf\wsf
|
||||
echo Install library: ewf/wsf_extension
|
||||
@@ -59,6 +59,7 @@ echo Install library: ewf/encoding
|
||||
|
||||
echo Install examples
|
||||
%COPYCMD% %TMP_DIR%\examples %TMP_TARGET_DIR%\examples\ewf
|
||||
%COPYCMD% %TMP_DIR%\precomp %TMP_TARGET_DIR%\examples\ewf_precomp
|
||||
|
||||
echo Install library: error
|
||||
%COPYCMD% %TMP_DIR%\library\utility\general\error %TMP_TARGET_DIR%\library\utility\general\error
|
||||
@@ -72,10 +73,26 @@ echo Install library: uri_template
|
||||
echo Install contrib library: nino
|
||||
%COPYCMD% %TMP_DIR%\contrib\library\network\server\nino %TMP_TARGET_DIR%\contrib\library\network\server\nino
|
||||
|
||||
rem #--- IF Missing ---#
|
||||
|
||||
echo Install json if missing
|
||||
if not exist %TMP_TARGET_DIR%/contrib/library/text/parser/json %COPYCMD% %TMP_DIR%/contrib/library/text/parser/json %TMP_TARGET_DIR%/contrib/library/text/parser/json
|
||||
|
||||
echo Install cURL if missing
|
||||
if not exist %TMP_TARGET_DIR%/library/cURL %COPYCMD% %TMP_DIR%/contrib/ise_library/cURL %TMP_TARGET_DIR%/contrib/library/network/cURL
|
||||
|
||||
echo Install eapml if missing
|
||||
if not exist %TMP_TARGET_DIR%/contrib/library/math/eapml %COPYCMD% %TMP_DIR%/contrib/ise_library/math/eapml %TMP_TARGET_DIR%/contrib/library/math/eapml
|
||||
|
||||
echo Install eel is missing
|
||||
if not exist %TMP_TARGET_DIR%/contrib/library/text/encryption/eel %COPYCMD% %TMP_DIR%/contrib/ise_library/text/encryption/eel %TMP_TARGET_DIR%/contrib/library/text/encryption/eel
|
||||
|
||||
|
||||
rem #--- Update ecf files ---#
|
||||
|
||||
cd %TMP_TARGET_DIR%
|
||||
call %~dp0\bin\ecf_updater.bat --force --backup --verbose --diff --ise_library .
|
||||
rem ecf_updater --force --backup --verbose --diff %TMP_TARGET_DIR%
|
||||
call %~dp0\bin\ecf_updater.bat --force --verbose --diff %2 %3 %4 %5 %6 %7 %8 %9 .
|
||||
goto end
|
||||
|
||||
:end
|
||||
del %TMP_EXCLUDE%
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@ COPYCMD() {
|
||||
fi
|
||||
}
|
||||
COPYCMDIFMISSING() {
|
||||
if [ ! -d "$2" ]; then
|
||||
COPYCMD $1 $2
|
||||
if [ ! -d "$1" ]; then
|
||||
COPYCMD $2 $3
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -68,13 +68,11 @@ 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
|
||||
#--- IF Missing ---#
|
||||
|
||||
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
|
||||
COPYCMDIFMISSING $TMP_TARGET_DIR/library/cURL $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
|
||||
@@ -84,6 +82,15 @@ 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
|
||||
|
||||
echo Install json if missing
|
||||
mkdir -p $TMP_TARGET_DIR/contrib/library/text/parser
|
||||
COPYCMDIFMISSING $TMP_TARGET_DIR/contrib/library/text/parser/json $TMP_DIR/contrib/library/text/parser/json $TMP_TARGET_DIR/contrib/library/text/parser/json
|
||||
|
||||
|
||||
#--- Update ecf files ---#
|
||||
|
||||
cd $TMP_TARGET_DIR
|
||||
echo ecf_updater
|
||||
$TMP_CWD/bin/ecf_updater --force --backup --verbose --diff $2 $3 $4 $5 $6 $7 .
|
||||
$TMP_CWD/bin/ecf_updater --force --verbose --diff $2 $3 $4 $5 $6 $7 $8 $9 .
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user