Skip to content
Snippets Groups Projects
Commit 66168bdb authored by Pierre-Loic Garoche's avatar Pierre-Loic Garoche
Browse files

Modified scripts to perform

- installation 
- distribution

copy the lib and Examples in the target folder.




git-svn-id: https://svn.onera.fr/Prelude/Prelude/branches/compil_propre@531 49f62630-d767-4ccd-930e-b3f5589f52e1
parent f940ff77
Branches compil_propre
Tags
No related merge requests found
#!/bin/bash #!/bin/bash
# Execute in a fresh Prelude directory to avoid garbage to come with. # Execute in a fresh Prelude directory to avoid garbage to come with.
# Build if needed VERSION=`grep Version _oasis | sed "s/Version:[' ']*//"`
if [ ! -e ./preludec.opt ];
then
make opt
fi
VERSION=`./preludec.opt -version`
ARCH=`uname -m` ARCH=`uname -m`
if [ "x86_64" = "${ARCH}" ]; if [ "x86_64" = "${ARCH}" ];
then then
...@@ -17,11 +11,12 @@ else ...@@ -17,11 +11,12 @@ else
fi fi
DISTRIB_DIR=prelude-$VERSION DISTRIB_DIR=prelude-$VERSION
mkdir -p $DISTRIB_DIR # Build if needed
./configure --prefix $DISTRIB_DIR
make all
# binaries # binaries
mkdir -p $DISTRIB_DIR/bin make install
cp preludec.opt $DISTRIB_DIR/bin/preludec
# libraries # libraries
mkdir -p $DISTRIB_DIR/lib mkdir -p $DISTRIB_DIR/lib
......
...@@ -4,22 +4,19 @@ if test "$1" = "-d"; ...@@ -4,22 +4,19 @@ if test "$1" = "-d";
then then
PREFIX_DIR=$2 PREFIX_DIR=$2
else else
PREFIX_DIR=. PREFIX_DIR=`pwd`
fi
# Build if needed
if [ ! -e ./preludec.opt ];
then
make opt
fi fi
INSTALL_DIR=$PREFIX_DIR/prelude INSTALL_DIR=$PREFIX_DIR/prelude
mkdir -p $INSTALL_DIR # Configure
./configure --prefix $INSTALL_DIR
# Build
make all
# binaries # Install binaries
mkdir -p $INSTALL_DIR/bin make install
cp preludec.opt $INSTALL_DIR/bin/preludec
# libraries # libraries
mkdir -p $INSTALL_DIR/lib mkdir -p $INSTALL_DIR/lib
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment