Updated install_ewf.sh
This commit is contained in:
14
tools/bin/compile_ecf_updater.sh
Normal file
14
tools/bin/compile_ecf_updater.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
TMP_SVN_CHECKOUT=`pwd`/tmp_ecf_updater
|
||||
svn checkout https://svn.eiffel.com/eiffelstudio/trunk/Src/tools/ecf_updater $TMP_SVN_CHECKOUT
|
||||
|
||||
$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin/ecb -config $TMP_SVN_CHECKOUT/ecf_updater.ecf -finalize -c_compile -project_path $TMP_SVN_CHECKOUT
|
||||
|
||||
ls "$TMP_SVN_CHECKOUT/EIFGENs/ecf_updater/F_code"
|
||||
if [ -e "$TMP_SVN_CHECKOUT/EIFGENs/ecf_updater/F_code/ecf_updater" ] ; then
|
||||
cp "$TMP_SVN_CHECKOUT/EIFGENs/ecf_updater/F_code/ecf_updater" `pwd`/ecf_updater
|
||||
#rm -rf $TMP_SVN_CHECKOUT
|
||||
echo ecf_updater is available in `pwd`
|
||||
fi
|
||||
|
||||
67
tools/install_ewf.sh
Normal file
67
tools/install_ewf.sh
Normal file
@@ -0,0 +1,67 @@
|
||||
#!/bin/sh
|
||||
|
||||
TMP_CWD=`pwd`
|
||||
TMP_DIR=$TMP_CWD/..
|
||||
|
||||
CLEANDIR() {
|
||||
for v in .svn .git EIFGENs; do
|
||||
/usr/bin/find "$1" -name "$v" -type d -exec rm -rf {} \;
|
||||
done
|
||||
}
|
||||
COPYCMD() {
|
||||
if [ -d "$1" ]; then
|
||||
if [ -d "$2" ]; then
|
||||
echo ERROR "$2" already exists
|
||||
fi
|
||||
if [ ! -d "$2" ]; then
|
||||
/bin/cp -rf "$1" "$2"
|
||||
CLEANDIR $2
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo ERROR: please provide as argument the installation directory
|
||||
exit
|
||||
fi
|
||||
|
||||
TMP_TARGET_DIR=$1
|
||||
|
||||
echo Install framework ewf
|
||||
mkdir -p $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
|
||||
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
|
||||
COPYCMD $TMP_DIR/library/server/wsf_extension $TMP_TARGET_DIR/contrib/library/web/framework/ewf/wsf_extension
|
||||
echo Install library: ewf/encoding
|
||||
mkdir -p $TMP_TARGET_DIR/contrib/library/web/framework/ewf/text
|
||||
COPYCMD $TMP_DIR/library/text/encoder $TMP_TARGET_DIR/contrib/library/web/framework/ewf/text/encoding
|
||||
|
||||
echo Install examples
|
||||
mkdir -p $TMP_TARGET_DIR/examples
|
||||
COPYCMD $TMP_DIR/examples $TMP_TARGET_DIR/examples/ewf
|
||||
|
||||
echo Install library: error
|
||||
mkdir -p $TMP_TARGET_DIR/library/utility/general
|
||||
COPYCMD $TMP_DIR/library/utility/general/error $TMP_TARGET_DIR/library/utility/general/error
|
||||
echo Install library: http_client
|
||||
mkdir -p $TMP_TARGET_DIR/library/network
|
||||
COPYCMD $TMP_DIR/library/network/http_client $TMP_TARGET_DIR/library/network/http_client
|
||||
echo Install library: http
|
||||
mkdir -p $TMP_TARGET_DIR/library/network/protocol
|
||||
COPYCMD $TMP_DIR/library/network/protocol/http $TMP_TARGET_DIR/library/network/protocol/http
|
||||
echo Install library: uri_template
|
||||
mkdir -p $TMP_TARGET_DIR/library/text/parser
|
||||
COPYCMD $TMP_DIR/library/text/parser/uri_template $TMP_TARGET_DIR/library/text/parser/uri_template
|
||||
|
||||
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
|
||||
|
||||
cd $TMP_TARGET_DIR
|
||||
echo ecf_updater
|
||||
$TMP_CWD/bin/ecf_updater --force --backup --verbose --diff --eiffel_library .
|
||||
Reference in New Issue
Block a user