Commit 845ea7e9 authored by Cyril Poupon's avatar Cyril Poupon
Browse files

Merge branch 'master' of framagit.org:cpoupon/gkg

parents f40a219b 384c1d33
......@@ -2,7 +2,7 @@
NCPU=`nproc --all`
cd ${GKG_SVN}
cd ${GIT_PATH}
if [ -d kokkos ];
then
......@@ -158,6 +158,5 @@ mkdir build-kokkos
cd build-kokkos
cmake -DCMAKE_BUILD_TYPE=Release -DKokkos_ENABLE_OpenMP=ON -DKOKKOS_ENABLE_OPENMP=ON ../kokkos
make -j${NCPU} package
mv *.deb ..
cd ..
#!/bin/bash
#
# Start message
#
echo "start packaging realtime code for Siemens environment"
#
# Get current directory
#
CURRENT_DIR=`pwd`
#
# Destination directory
#
DESTINATION="gkg-realtime-idea"
SIEMENS_FOLDERS="n4/pkg/MrServers/Gkg"
#
# Packages list
#
GKG_PKG_LIST="core/src/library/gkg-core-cppext"
GKG_PKG_LIST="$GKG_PKG_LIST core/src/library/gkg-core-exception"
GKG_PKG_LIST="$GKG_PKG_LIST core/src/library/gkg-core-pattern"
GKG_PKG_LIST="$GKG_PKG_LIST communication/src/library/gkg-communication-dispatcher"
GKG_PKG_LIST="$GKG_PKG_LIST communication/src/library/gkg-communication-rpc"
GKG_PKG_LIST="$GKG_PKG_LIST communication/src/library/gkg-communication-socket"
GKG_PKG_LIST="$GKG_PKG_LIST communication/src/library/gkg-communication-tcpip"
GKG_PKG_LIST="$GKG_PKG_LIST win32/src/library/gkg-win32-feedback"
GKG_PKG_LIST="$GKG_PKG_LIST realtime-mri/src/library/gkg-realtime-mri-application"
GKG_PKG_LIST="$GKG_PKG_LIST realtime-mri/src/library/gkg-realtime-mri-rpc"
SEQ_PKG_LIST="win32/makefiles"
SEQ_PKG_LIST="$SEQ_PKG_LIST win32/share/bug-fix"
SEQ_PKG_LIST="$SEQ_PKG_LIST win32/share/microsoft-sdk"
PKG_LIST="$GKG_PKG_LIST $SEQ_PKG_LIST"
MISC_FILE_LIST="win32/share/DiffusionVectors_gkg.txt"
#
# Clean up directory
#
cd $GKG_SVN
if [ -f $DESTINATION.zip ]; then
\rm -f $DESTINATION.zip
fi
if [ -d $DESTINATION ]; then
\rm -rf $DESTINATION
fi
#
# Create destination directories
#
mkdir -p $DESTINATION/$SIEMENS_FOLDERS
cd $DESTINATION
#
# Copy useful packages
#
for pkg in $PKG_LIST; do
dir=`echo $pkg | sed 's/^.*\///'`
echo "copy $dir/"
mkdir -p $dir
rsync -av --exclude=.svn --exclude=*.bck $GKG_SVN/gkg/$pkg/ $GKG_SVN/$DESTINATION/$SIEMENS_FOLDERS/$dir/ > /dev/null
done
#
# Rename *.cxx to *.cpp
#
echo "rename *.cxx to *.cpp"
for pkg in $GKG_PKG_LIST; do
dir=`echo $pkg | sed 's/^.*\///'`
for f in $GKG_SVN/$DESTINATION/$SIEMENS_FOLDERS/$dir/*.cxx; do
dest=`echo $f | sed 's/\.cxx/\.cpp/'`
if [ -f $f ]; then
\mv $f $dest
fi
done
done
#
# Copy useful files
#
for f in $MISC_FILE_LIST; do
filename=`echo $f | sed 's/^.*\///'`
echo "copy $filename"
\cp -f $GKG_SVN/gkg/$f $GKG_SVN/$DESTINATION/$SIEMENS_FOLDERS/
done
#
# Make a zip file for compatibility with Windows systems
#
echo "zip to archive"
basedir=`echo $SIEMENS_FOLDERS | sed 's/\/.*//'`
zip -r $GKG_SVN/$DESTINATION.zip $basedir > /dev/null
#
# Clear temporary directory
#
cd $GKG_SVN
\rm -rf $DESTINATION
#
# Go back to current directory
#
cd $CURRENT_DIR
#
# End message
#
echo "done"
echo " "
echo "For installation, copy and unzip \"$DESTINATION.zip\""
echo "in the directory MIDEA\N4_VB17A_LATEST_20090307\."
echo "The code will then be located in"
echo "MIDEA\N4_VB17A_LATEST_20090307\n4\pkg\MrServers\Gkg\."
echo " "
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment