first import of Eiffel env layout

This commit is contained in:
2015-02-25 10:03:19 +01:00
commit c4766cf038
11 changed files with 134 additions and 0 deletions

1
eiffel/etc/default.rc Symbolic link
View File

@@ -0,0 +1 @@
eiffel_15_01.rc

View File

@@ -0,0 +1,7 @@
. ~/dev/eiffel/etc/env.rc
export ISE_EIFFEL=~/dev/eiffel/15.05
export ISE_LIBRARY=$ISE_EIFFEL
export PATH=$ISE_EIFFEL/studio/spec/$ISE_PLATFORM/bin:$PATH
export PATH=$ISE_EIFFEL/tools/spec/$ISE_PLATFORM/bin:$PATH
export PATH=$ISE_EIFFEL/library/gobo/spec/$ISE_PLATFORM/bin:$PATH

1
eiffel/etc/env.rc Normal file
View File

@@ -0,0 +1 @@
export ISE_PLATFORM=linux-armv6

3
eiffel/etc/mysql.rc Normal file
View File

@@ -0,0 +1,3 @@
export MYSQLINC=/usr/include/mysql
#export MYSQLLIB=/usr/lib/mysql
export MYSQLLIB=/usr/lib/i386-linux-gnu

1
eiffel/ftp/README.md Normal file
View File

@@ -0,0 +1 @@
Folder containing Eiffel setup, the contents can be removed.

53
eiffel/install_ec_version.sh Executable file
View File

@@ -0,0 +1,53 @@
#!/bin/bash
# usage example:
# prog 15.01 96535
. ~/dev/eiffel/etc/env.rc
t_platform=$ISE_PLATFORM
t_dir=`pwd`
t_version=$1
t_revision=$2
t_file=Eiffel_${t_version}_gpl_${t_revision}-${t_platform}.tar.bz2
t_url=ftp://ftp.eiffel.com/pub/beta/${t_version}/${t_file}
#t_url=ftp://ftp.eiffel.com/pub/beta/nightly/${t_file}
echo Download $t_url
if [ -f $t_dir/ftp/$t_file ];
then
echo "File $t_file already downloaded"
else
cd $t_dir/ftp
wget $t_url
cd $t_dir
fi
if [ -f $t_dir/ftp/$t_file ];
then
t_spec_dir=spec/$t_platform/$t_version.$t_revision
echo "Extract $t_file into $t_spec_dir"
mkdir -p $t_dir/$t_spec_dir
cd $t_dir/$t_spec_dir
if [ -d Eiffel_$t_version ];
then
echo "$t_version ($t_revision) already installed"
else
tar xjvf $t_dir/ftp/$t_file
fi
cd $t_dir
if [ -d $t_dir/$t_spec_dir/Eiffel_$t_version ];
then
echo "Install $t_version ($t_revision) into `pwd`"
ln -s -f $t_spec_dir/Eiffel_${t_version} $t_version
else
echo "Extract failed.."
fi
else
echo "Download failed"
fi

9
eiffel/setup_debian_env.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
sudo apt-get install gcc make g++
sudo apt-get install libmysqlclient-dev
sudo apt-get install libgtk2.0-dev libxtst-dev
sudo apt-get install libfcgi-dev
sudo apt-get install libcurl-dev
sudo apt-get install libapache2-mod-fcgid

1
eiffel/spec/README.md Normal file
View File

@@ -0,0 +1 @@
Folder containing various Eiffel installations

6
etc/default.rc Normal file
View File

@@ -0,0 +1,6 @@
. ~/dev/eiffel/etc/default.rc
. ~/dev/eiffel/etc/mysql.rc
export EIFFEL_SRC=~/dev/src
export ISE_LIBRARY=$EIFFEL_SRC

28
prepare_src.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
. ./etc/default.rc
function prepare_folder {
tmpname=$1
cwd=`pwd`
if [ -d "$tmpname" ]
then
cd $tmpname
if [ -f "build.eant" ];
then
geant compile
fi
cd $cwd
fi
echo
}
cd src
prepare_folder library
prepare_folder unstable/library
prepare_folder contrib/library
cd library/store/dbms/rdbms/mysql/Clib
finish_freezing -library

24
update_src.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
function scm_update {
tmpname=$1
if [ -d "$tmpname" ]
then
echo Update $1
svn update $tmpname
else
echo Checkout $1
svn checkout https://svn.eiffel.com/eiffelstudio/trunk/Src/$tmpname $tmpname
fi
echo
}
cd src
scm_update library
scm_update unstable
scm_update contrib
scm_update framework
scm_update web
scm_update tools