#!/bin/bash
# Script generated by dpgitconfigure on Oct  7 2020
#
#   Configure script for Linux, Mac OS X and Unix
#
# copyright (C) 2020 Marc Wathelet. All rights reserved.
#
#  This script is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#

# Useful functions
absolutePath()
{
  PATH=$1
  if [ "${PATH:0:1}" = "/" ]; then
    echo $PATH
  else
    ABS_PATH=$PWD
    while [ "${PATH:0:3}" = "../" ]; do
      ABS_PATH=${ABS_PATH%/[^/]*}
      PATH=${PATH:3}
    done
    echo $ABS_PATH/$PATH
  fi
}

# Arguments: destination directory, file
# New file must be generated in TEMP_DIR
function replaceFile()
{
  if [ -e $1/$2 ] && diff $1/$2 $TEMP_DIR/$2 > /dev/null; then
    rm $TEMP_DIR/$2
  else
    mv $TEMP_DIR/$2 $1
  fi
}

cleanexit()
{
  rm -rf $TEMP_DIR
  if [ $# = 1 ]; then
    if [ $1 -ne 0 ]; then
      rm -f $BUILD_DIR/geopsypack.pro
      rm -f $BUILD_DIR/Makefile*
      echo "Error while configuring geopsypack. Check above messages."
      echo "If you want to contact support, send a copy of the whole output."
    fi
    exit $1
  else
    echo
    echo "Aborting..." 1>&2
    exit 2
  fi
}

trap cleanexit INT QUIT
TEMP_DIR=$(mktemp -d /tmp/configure_XXXXXXXXX)

# Platform options
case "$(uname)" in
  Linux) PLATFORM=LINUX ;;
  SunOS) PLATFORM=LINUX ;;
  Darwin) PLATFORM=MAC ;;
  MINGW*) PLATFORM=MINGW ;;
  *)
    echo "Unknown platform $(uname)"
    cleanexit 2
  ;;
esac
# Current shell
if [ "$PLATFORM" = "MINGW" ]; then
  SHELL=sh
else
  SHELL=bash
fi
# Default options
LICENSE_ACCEPTED="no"
SKIP_QT_CHECK="no"
COMMANDLINE=""
SOURCE_DIR=$(cd $(dirname $0) && pwd)
BUILD_DIR=$SOURCE_DIR
while [ "$1" ]; do
  case "$1" in
    "-prefix" | "--prefix" | \
    "-bindir" | "--bindir" | \
    "-libdir" | "--libdir" | \
    "-incdir" | "--incdir" | \
    "-sharedir" | "--sharedir" | \
    "-dest-prefix" | "--dest-prefix" | \
    "-I" | \
    "-L" | \
    "-qt-bin-path" | "--qt-bin-path")
      COMMANDLINE="$COMMANDLINE $1"
      shift
      COMMANDLINE="$COMMANDLINE \"$(absolutePath $1)\""
    ;;
    "-D" | \
    "-cflags" | "--cflags" | \
    "-march" | "--march")
      COMMANDLINE="$COMMANDLINE $1"
      shift
      COMMANDLINE="$COMMANDLINE \"$1\""
    ;;
    "-shared" | "--shared" | \
    "-static" | "--static" | \
    "-no-pch" | "--no-pch" | \
    "-profile" | "--profile" | \
    "-win32" | "--win32" | \
    "-win64" | "--win64" | \
    "-no-svg" | "--no-svg" | \
    "-sse3" | "--sse3" | \
    "-skip-qt-translations" | "--skip-qt-translations")
      COMMANDLINE="$COMMANDLINE $1"
    ;;
    "-builddir" | "--builddir")
      COMMANDLINE="$COMMANDLINE $1"
      shift
      BUILD_DIR="$(absolutePath $1)"
      COMMANDLINE="$COMMANDLINE \"$BUILD_DIR\""
    ;;
    "-rpath" | "--rpath")
      if [ "${2:0:1}" = "-" ]; then
        COMMANDLINE="$COMMANDLINE -rpath"
      else
        shift
        COMMANDLINE="$COMMANDLINE -rpath \"$1\""
      fi
    ;;
    "-accept-license" | "--accept-license")
      LICENSE_ACCEPTED="yes"
      COMMANDLINE="$COMMANDLINE $1"
    ;;
    "-skip-qt-check" | "--skip-qt-check")
      SKIP_QT_CHECK="yes"
      COMMANDLINE="$COMMANDLINE $1"
    ;;
    "-h" | "-help" | "--help")
      echo
      echo "Usage: ./configure [options]"
      echo
      echo "Options:"
      echo
      echo " -qt-bin-path <DIR>  Use Qt in DIR instead of qt in PATH"
      echo " -accept-license     Skip interactive license acceptance"
      echo " -no-pch             Do not use precompiled headers (slower compilation)"
      echo
      echo "Installation paths:"
      echo
      echo " -prefix <DIR>       Base directory for installation"
      echo "                       (default /usr/local/Geopsy.org)"
      echo " -bindir <DIR>       Executables will be installed to dir"
      echo "                       (default PREFIX/bin)"
      echo " -libdir <DIR>       Libraries will be installed to dir"
      echo "                       (default PREFIX/lib)"
      echo " -incdir <DIR>       Headers will be installed to dir"
      echo "                       (default PREFIX/include)"
      echo " -sharedir <DIR>     Shared files and translations will be installed"
      echo "                     to dir (default PREFIX/share)"
      echo " -builddir <DIR>     Building in DIR instead of in source dir"
      echo
      echo "Configuration:"
      echo
      echo " -shared             Create and use shared libraries"
      echo " -static             Create and use static libraries"
      echo
      echo " -D <MACRO>          Defines MACRO"
      echo
      echo " -dest-prefix <DIR>  Destination prefix for all binaries"
      echo "                       (default working directory)"
      echo " -rpath <DIR>        Add DIR to library rutime search path"
      echo "                       (default PREFIX/lib, reset to null without DIR)"
      echo " -skip-qt-check      Do not check current Qt version"
      echo " -profile            Turn profiling on, add gcc option '-pg'"
      echo "                       (for development under Linux only)"
      echo " -win32              Turn on cross compilation with i686-mingw32"
      echo "                       (under Linux only)"
      echo " -win64              Turn on cross compilation with x86_64-mingw32"
      echo "                       (under Linux only)"
      echo " -no-svg             Do not compile support for Qt svg"
      echo " -cflags <FLAG>      Add FLAG to the list of compilation flags"
      echo " -sse3               Compile with SSE3 support"
      echo " -march <ARCH>       Specify the name of the target architecture"
      echo "                       Use ARCH=native for auto detection of the CPU's architecture"
      echo "                       Useful link: https://wiki.gentoo.org/wiki/Safe_CFLAGS"
      echo "                       Your architecture is:"
      grep -m1 -A3 "vendor_id" /proc/cpuinfo | awk '{printf("                       ");print}'
      echo
      echo
      echo "Third party libraries:"
      echo
      echo " -I dir              Add dir to the list of directories to be"
      echo "                     searched for headers"
      echo " -L dir              Add dir to the list of directories to be"
      echo "                     searched for libraries"
      echo
      cleanexit 0
    ;;
    *)
      echo "Bad option $1, see './configure -h' for help"
      cleanexit 2
    ;;
  esac
  shift
done

# Ensure that BUILD_DIR exists
test -d $BUILD_DIR || mkdir -p $BUILD_DIR

#Check that Qt is correctly installed
if [ "$SKIP_QT_CHECK" = "no" ]; then
  if qmake -v > /dev/null 2>&1; then
    QT_VERSION=$(qmake -v | awk '{if(NR==2) print $4}')
    QT_VERSION_NUM=$(echo $QT_VERSION | awk 'BEGIN{FS="."}{print $1*1000000+$2*1000+$3}')
    if [ "$QT_VERSION_NUM" -lt "5014002" ]; then
      echo "*** ERROR *** : your Qt version is $QT_VERSION."
      echo "                At least version 5.14.2 is recommended."
      echo "                If you want to skip this version check,"
      echo "                add option -skip-qt-check."
      cleanexit 2
    fi
  else
    echo "*** ERROR *** : qmake command is not available."
    echo "                Either Qt is not correctly installed"
    echo "                or PATH does not point to Qt binaries."
    cleanexit 2
  fi
fi
# Show license if Makefile does not exist
if [ ! -e $BUILD_DIR/configure.cache ] && [ "$LICENSE_ACCEPTED" = "no" ]; then
  echo
  echo "geopsypack contains items licensed to you under"
  if [ "$(ls LICENSE.* | wc -l)" -eq 1 ]; then
    echo "the terms of this license:"
    THIS_LICENCE="this license"
  else
    echo "the terms of all these licenses:"
    THIS_LICENCE="these licenses"
  fi
  echo
  for l in $(ls LICENSE.*); do
    echo "   $l"
  done
  echo
  LICENSE_ACCEPT=""
  while [ "$LICENSE_ACCEPT" != "no" ] && [ "$LICENSE_ACCEPT" != "yes" ]; do
    echo "Type 'view' to view ${THIS_LICENSE}."
    echo "Type 'yes' to accept ${THIS_LICENSE}."
    echo "Type 'no' to decline ${THIS_LICENSE}."
    echo
    echo -n "Do you accept ${THIS_LICENSE}? "
    read LICENSE_ACCEPT
    if [ "$LICENSE_ACCEPT" = "view" ]; then
      echo
      echo "###########################################################"
      echo
      echo "Type SPACE BAR or RETURN to move down, 'q' for next license"
      echo
      echo "###########################################################"
      echo
      sleep 5
      for l in $(ls LICENSE.*); do
        less $l
      done
    fi
  done
  if [ "$LICENSE_ACCEPT" = "no" ]; then
    echo "You are not allowed to use this package."
    cleanexit 2
  fi
fi
echo

# If configure called from ./configure.cache, do not overwrite
if [ "$SAVE_CONFIGURE_OPTIONS_IN_CACHE" != "no" ]; then
  (
  cat << END
export SAVE_CONFIGURE_OPTIONS_IN_CACHE="no"
cd $SOURCE_DIR
echo "$SHELL $0 ${COMMANDLINE//\"/\\\"}"
$SHELL $0 $COMMANDLINE
END
  ) > $BUILD_DIR/configure.cache
  chmod a+x $BUILD_DIR/configure.cache
fi

# Check for Ubuntu Unity
# Comment this section if you are not running Ubuntu Unity with a recent release > 10.04
if which lsb_release > /dev/null 2>&1; then
  if [ $(lsb_release --id | awk 'BEGIN{FS=":"}{gsub("^[ \t]*", "", $2);print tolower($2)}') = "ubuntu" ]; then
    if [ $(lsb_release --release | awk 'BEGIN{FS=":"}{gsub("^[ \t]*", "", $2);print $2*100}') -gt 1004 ]; then
      COMMANDLINE="$COMMANDLINE -D UBUNTU_UNITY"
    fi
  fi
fi

# Create main pro file
(
echo "TEMPLATE=subdirs"
echo "CONFIG += ordered"
echo "SUBDIRS=\\"
) > $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/mseed/src || mkdir -p $BUILD_DIR/mseed/src
cat <<ENDVERSION > $TEMP_DIR/mseedVersion.h
#ifndef MSEED_VERSION
#define MSEED_VERSION "2.17.0"
#define MSEED_VERSION_TIME "202007301118"
#define MSEED_VERSION_TYPE "3.3"
#define MSEED_AUTHORS ""
#define MSEED_DISTRIBUTION "3.3.3"
#define MSEED_GIT_COMMIT "52b5cd83de05d8166538d46aabf02b4391fa9e50"
#endif // MSEED_VERSION
ENDVERSION
replaceFile $BUILD_DIR/mseed/src mseedVersion.h
echo "Configure mseed"
cd "mseed"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir mseed -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          mseed \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/slink/src || mkdir -p $BUILD_DIR/slink/src
cat <<ENDVERSION > $TEMP_DIR/slinkVersion.h
#ifndef SLINK_VERSION
#define SLINK_VERSION "1.6.0"
#define SLINK_VERSION_TIME "202006291322"
#define SLINK_VERSION_TYPE "3.3"
#define SLINK_AUTHORS ""
#define SLINK_DISTRIBUTION "3.3.3"
#define SLINK_GIT_COMMIT "e49e6a2eb8ea73b15fdb26c7a078de978180c61a"
#endif // SLINK_VERSION
ENDVERSION
replaceFile $BUILD_DIR/slink/src slinkVersion.h
echo "Configure slink"
cd "slink"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir slink -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          slink \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/QGpCoreTools/src || mkdir -p $BUILD_DIR/QGpCoreTools/src
cat <<ENDVERSION > $TEMP_DIR/QGpCoreToolsVersion.h
#ifndef QGPCORETOOLS_VERSION
#define QGPCORETOOLS_VERSION "2.3.2"
#define QGPCORETOOLS_VERSION_TIME "202010061251"
#define QGPCORETOOLS_VERSION_TYPE "3.3"
#define QGPCORETOOLS_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define QGPCORETOOLS_DISTRIBUTION "3.3.3"
#define QGPCORETOOLS_GIT_COMMIT "1001aa3e175620e74285f193b2f52e1713bd2263"
#endif // QGPCORETOOLS_VERSION
ENDVERSION
replaceFile $BUILD_DIR/QGpCoreTools/src QGpCoreToolsVersion.h
echo "Configure QGpCoreTools"
cd "QGpCoreTools"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir QGpCoreTools -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          QGpCoreTools \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/QGpGuiTools/src || mkdir -p $BUILD_DIR/QGpGuiTools/src
cat <<ENDVERSION > $TEMP_DIR/QGpGuiToolsVersion.h
#ifndef QGPGUITOOLS_VERSION
#define QGPGUITOOLS_VERSION "2.3.1"
#define QGPGUITOOLS_VERSION_TIME "202010061250"
#define QGPGUITOOLS_VERSION_TYPE "3.3"
#define QGPGUITOOLS_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define QGPGUITOOLS_DISTRIBUTION "3.3.3"
#define QGPGUITOOLS_GIT_COMMIT "c43f97d3fca6838dea01637fe348ed27b2ac5cb0"
#endif // QGPGUITOOLS_VERSION
ENDVERSION
replaceFile $BUILD_DIR/QGpGuiTools/src QGpGuiToolsVersion.h
echo "Configure QGpGuiTools"
cd "QGpGuiTools"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir QGpGuiTools -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          QGpGuiTools \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/QGpCoreMath/src || mkdir -p $BUILD_DIR/QGpCoreMath/src
cat <<ENDVERSION > $TEMP_DIR/QGpCoreMathVersion.h
#ifndef QGPCOREMATH_VERSION
#define QGPCOREMATH_VERSION "1.3.1"
#define QGPCOREMATH_VERSION_TIME "202010061250"
#define QGPCOREMATH_VERSION_TYPE "3.3"
#define QGPCOREMATH_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define QGPCOREMATH_DISTRIBUTION "3.3.3"
#define QGPCOREMATH_GIT_COMMIT "690aa9eb4c99f411b15e6b8abfcc1d009de99d5d"
#endif // QGPCOREMATH_VERSION
ENDVERSION
replaceFile $BUILD_DIR/QGpCoreMath/src QGpCoreMathVersion.h
echo "Configure QGpCoreMath"
cd "QGpCoreMath"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir QGpCoreMath -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          QGpCoreMath \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/SciFigs/src || mkdir -p $BUILD_DIR/SciFigs/src
cat <<ENDVERSION > $TEMP_DIR/SciFigsVersion.h
#ifndef SCIFIGS_VERSION
#define SCIFIGS_VERSION "3.2.1"
#define SCIFIGS_VERSION_TIME "202010061250"
#define SCIFIGS_VERSION_TYPE "3.3"
#define SCIFIGS_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define SCIFIGS_DISTRIBUTION "3.3.3"
#define SCIFIGS_GIT_COMMIT "f6ace81574ecad281d9d90b35fa6c953672d3dba"
#endif // SCIFIGS_VERSION
ENDVERSION
replaceFile $BUILD_DIR/SciFigs/src SciFigsVersion.h
echo "Configure SciFigs"
cd "SciFigs"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir SciFigs -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          SciFigs \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/QGpGuiMath/src || mkdir -p $BUILD_DIR/QGpGuiMath/src
cat <<ENDVERSION > $TEMP_DIR/QGpGuiMathVersion.h
#ifndef QGPGUIMATH_VERSION
#define QGPGUIMATH_VERSION "1.2.0"
#define QGPGUIMATH_VERSION_TIME "202006291324"
#define QGPGUIMATH_VERSION_TYPE "3.3"
#define QGPGUIMATH_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define QGPGUIMATH_DISTRIBUTION "3.3.3"
#define QGPGUIMATH_GIT_COMMIT "fcb2db028ddd8468aac76215daa15e0f3913a00a"
#endif // QGPGUIMATH_VERSION
ENDVERSION
replaceFile $BUILD_DIR/QGpGuiMath/src QGpGuiMathVersion.h
echo "Configure QGpGuiMath"
cd "QGpGuiMath"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir QGpGuiMath -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          QGpGuiMath \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/figue/src || mkdir -p $BUILD_DIR/figue/src
cat <<ENDVERSION > $TEMP_DIR/figueVersion.h
#ifndef FIGUE_VERSION
#define FIGUE_VERSION "2.0.4"
#define FIGUE_VERSION_TIME "202010061250"
#define FIGUE_VERSION_TYPE "3.3"
#define FIGUE_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define FIGUE_DISTRIBUTION "3.3.3"
#define FIGUE_GIT_COMMIT "9f58157afe68285420ed4b16b44e9aa8bce2bce4"
#endif // FIGUE_VERSION
ENDVERSION
replaceFile $BUILD_DIR/figue/src figueVersion.h
echo "Configure figue"
cd "figue"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir figue -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          figue \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/QGpCoreWave/src || mkdir -p $BUILD_DIR/QGpCoreWave/src
cat <<ENDVERSION > $TEMP_DIR/QGpCoreWaveVersion.h
#ifndef QGPCOREWAVE_VERSION
#define QGPCOREWAVE_VERSION "2.1.2"
#define QGPCOREWAVE_VERSION_TIME "202010061250"
#define QGPCOREWAVE_VERSION_TYPE "3.3"
#define QGPCOREWAVE_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)\nPhil Cummins (RSES, Canberra, Australia)\nRoger Wisen (RAMBOLL, Copenhagen, Denmark)"
#define QGPCOREWAVE_DISTRIBUTION "3.3.3"
#define QGPCOREWAVE_GIT_COMMIT "c2d48fd8c403275191cb4a4ca6b14bf24033bc04"
#endif // QGPCOREWAVE_VERSION
ENDVERSION
replaceFile $BUILD_DIR/QGpCoreWave/src QGpCoreWaveVersion.h
echo "Configure QGpCoreWave"
cd "QGpCoreWave"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir QGpCoreWave -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          QGpCoreWave \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/QGpGuiWave/src || mkdir -p $BUILD_DIR/QGpGuiWave/src
cat <<ENDVERSION > $TEMP_DIR/QGpGuiWaveVersion.h
#ifndef QGPGUIWAVE_VERSION
#define QGPGUIWAVE_VERSION "1.1.0"
#define QGPGUIWAVE_VERSION_TIME "202006291324"
#define QGPGUIWAVE_VERSION_TYPE "3.3"
#define QGPGUIWAVE_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)"
#define QGPGUIWAVE_DISTRIBUTION "3.3.3"
#define QGPGUIWAVE_GIT_COMMIT "60dd9eab4bc6d348fab34a7b874ac704979495a8"
#endif // QGPGUIWAVE_VERSION
ENDVERSION
replaceFile $BUILD_DIR/QGpGuiWave/src QGpGuiWaveVersion.h
echo "Configure QGpGuiWave"
cd "QGpGuiWave"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir QGpGuiWave -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          QGpGuiWave \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/QGpCompatibility/src || mkdir -p $BUILD_DIR/QGpCompatibility/src
cat <<ENDVERSION > $TEMP_DIR/QGpCompatibilityVersion.h
#ifndef QGPCOMPATIBILITY_VERSION
#define QGPCOMPATIBILITY_VERSION "1.1.0"
#define QGPCOMPATIBILITY_VERSION_TIME "202006291324"
#define QGPCOMPATIBILITY_VERSION_TYPE "3.3"
#define QGPCOMPATIBILITY_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define QGPCOMPATIBILITY_DISTRIBUTION "3.3.3"
#define QGPCOMPATIBILITY_GIT_COMMIT "ecc6d91e29d4105b0e82e12ed24acff6c48d2ed8"
#endif // QGPCOMPATIBILITY_VERSION
ENDVERSION
replaceFile $BUILD_DIR/QGpCompatibility/src QGpCompatibilityVersion.h
echo "Configure QGpCompatibility"
cd "QGpCompatibility"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir QGpCompatibility -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          QGpCompatibility \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/GeopsyCore/src || mkdir -p $BUILD_DIR/GeopsyCore/src
cat <<ENDVERSION > $TEMP_DIR/GeopsyCoreVersion.h
#ifndef GEOPSYCORE_VERSION
#define GEOPSYCORE_VERSION "4.3.2"
#define GEOPSYCORE_VERSION_TIME "202010061250"
#define GEOPSYCORE_VERSION_TYPE "3.3"
#define GEOPSYCORE_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define GEOPSYCORE_DISTRIBUTION "3.3.3"
#define GEOPSYCORE_GIT_COMMIT "d412b917efb581b6181b848aa632573e4fda7a75"
#endif // GEOPSYCORE_VERSION
ENDVERSION
replaceFile $BUILD_DIR/GeopsyCore/src GeopsyCoreVersion.h
echo "Configure GeopsyCore"
cd "GeopsyCore"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir GeopsyCore -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          GeopsyCore \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/GeopsyGui/src || mkdir -p $BUILD_DIR/GeopsyGui/src
cat <<ENDVERSION > $TEMP_DIR/GeopsyGuiVersion.h
#ifndef GEOPSYGUI_VERSION
#define GEOPSYGUI_VERSION "3.3.2"
#define GEOPSYGUI_VERSION_TIME "202010061250"
#define GEOPSYGUI_VERSION_TYPE "3.3"
#define GEOPSYGUI_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define GEOPSYGUI_DISTRIBUTION "3.3.3"
#define GEOPSYGUI_GIT_COMMIT "cdaf398a150ded796b93a7558003193eb8be87d9"
#endif // GEOPSYGUI_VERSION
ENDVERSION
replaceFile $BUILD_DIR/GeopsyGui/src GeopsyGuiVersion.h
echo "Configure GeopsyGui"
cd "GeopsyGui"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir GeopsyGui -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          GeopsyGui \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/geopsyfigs/src || mkdir -p $BUILD_DIR/geopsyfigs/src
cat <<ENDVERSION > $TEMP_DIR/geopsyfigsVersion.h
#ifndef GEOPSYFIGS_VERSION
#define GEOPSYFIGS_VERSION "1.0.1"
#define GEOPSYFIGS_VERSION_TIME "202006291324"
#define GEOPSYFIGS_VERSION_TYPE "3.3"
#define GEOPSYFIGS_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GEOPSYFIGS_DISTRIBUTION "3.3.3"
#define GEOPSYFIGS_GIT_COMMIT "4631838734ff4e18a5da918c75b687f81c8b8c69"
#endif // GEOPSYFIGS_VERSION
ENDVERSION
replaceFile $BUILD_DIR/geopsyfigs/src geopsyfigsVersion.h
echo "Configure geopsyfigs"
cd "geopsyfigs"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir geopsyfigs -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          geopsyfigs \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/GeopsySLink/src || mkdir -p $BUILD_DIR/GeopsySLink/src
cat <<ENDVERSION > $TEMP_DIR/GeopsySLinkVersion.h
#ifndef GEOPSYSLINK_VERSION
#define GEOPSYSLINK_VERSION "2.0.2"
#define GEOPSYSLINK_VERSION_TIME "202007301154"
#define GEOPSYSLINK_VERSION_TYPE "3.3"
#define GEOPSYSLINK_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GEOPSYSLINK_DISTRIBUTION "3.3.3"
#define GEOPSYSLINK_GIT_COMMIT "b79d3ec8da109800bb3514cd03a41e68a988ae4f"
#endif // GEOPSYSLINK_VERSION
ENDVERSION
replaceFile $BUILD_DIR/GeopsySLink/src GeopsySLinkVersion.h
echo "Configure GeopsySLink"
cd "GeopsySLink"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir GeopsySLink -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          GeopsySLink \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/GeopsySLinkGui/src || mkdir -p $BUILD_DIR/GeopsySLinkGui/src
cat <<ENDVERSION > $TEMP_DIR/GeopsySLinkGuiVersion.h
#ifndef GEOPSYSLINKGUI_VERSION
#define GEOPSYSLINKGUI_VERSION "2.0.2"
#define GEOPSYSLINKGUI_VERSION_TIME "202006291324"
#define GEOPSYSLINKGUI_VERSION_TYPE "3.3"
#define GEOPSYSLINKGUI_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GEOPSYSLINKGUI_DISTRIBUTION "3.3.3"
#define GEOPSYSLINKGUI_GIT_COMMIT "c992b6abeb468bb7ffb8f2c5cf70f70e5f5dce91"
#endif // GEOPSYSLINKGUI_VERSION
ENDVERSION
replaceFile $BUILD_DIR/GeopsySLinkGui/src GeopsySLinkGuiVersion.h
echo "Configure GeopsySLinkGui"
cd "GeopsySLinkGui"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir GeopsySLinkGui -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          GeopsySLinkGui \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/DinverCore/src || mkdir -p $BUILD_DIR/DinverCore/src
cat <<ENDVERSION > $TEMP_DIR/DinverCoreVersion.h
#ifndef DINVERCORE_VERSION
#define DINVERCORE_VERSION "1.2.2"
#define DINVERCORE_VERSION_TIME "202010061250"
#define DINVERCORE_VERSION_TYPE "3.3"
#define DINVERCORE_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define DINVERCORE_DISTRIBUTION "3.3.3"
#define DINVERCORE_GIT_COMMIT "1a012724174bfb13ffc14ce6430120c5f98727e6"
#endif // DINVERCORE_VERSION
ENDVERSION
replaceFile $BUILD_DIR/DinverCore/src DinverCoreVersion.h
echo "Configure DinverCore"
cd "DinverCore"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir DinverCore -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          DinverCore \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/DinverGui/src || mkdir -p $BUILD_DIR/DinverGui/src
cat <<ENDVERSION > $TEMP_DIR/DinverGuiVersion.h
#ifndef DINVERGUI_VERSION
#define DINVERGUI_VERSION "1.0.0"
#define DINVERGUI_VERSION_TIME "202006291324"
#define DINVERGUI_VERSION_TYPE "3.3"
#define DINVERGUI_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define DINVERGUI_DISTRIBUTION "3.3.3"
#define DINVERGUI_GIT_COMMIT "f7f8909b5ffb8fb7653d0990b930b222fb4303f4"
#endif // DINVERGUI_VERSION
ENDVERSION
replaceFile $BUILD_DIR/DinverGui/src DinverGuiVersion.h
echo "Configure DinverGui"
cd "DinverGui"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir DinverGui -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          DinverGui \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/DinverDCCore/src || mkdir -p $BUILD_DIR/DinverDCCore/src
cat <<ENDVERSION > $TEMP_DIR/DinverDCCoreVersion.h
#ifndef DINVERDCCORE_VERSION
#define DINVERDCCORE_VERSION "2.1.1"
#define DINVERDCCORE_VERSION_TIME "202007301154"
#define DINVERDCCORE_VERSION_TYPE "3.3"
#define DINVERDCCORE_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define DINVERDCCORE_DISTRIBUTION "3.3.3"
#define DINVERDCCORE_GIT_COMMIT "9199c63c7b8adcf8277cb65a5d65edb877be26aa"
#endif // DINVERDCCORE_VERSION
ENDVERSION
replaceFile $BUILD_DIR/DinverDCCore/src DinverDCCoreVersion.h
echo "Configure DinverDCCore"
cd "DinverDCCore"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir DinverDCCore -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          DinverDCCore \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/DinverDCGui/src || mkdir -p $BUILD_DIR/DinverDCGui/src
cat <<ENDVERSION > $TEMP_DIR/DinverDCGuiVersion.h
#ifndef DINVERDCGUI_VERSION
#define DINVERDCGUI_VERSION "1.1.0"
#define DINVERDCGUI_VERSION_TIME "202006291324"
#define DINVERDCGUI_VERSION_TYPE "3.3"
#define DINVERDCGUI_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define DINVERDCGUI_DISTRIBUTION "3.3.3"
#define DINVERDCGUI_GIT_COMMIT "0067a28f06bf4f2b5a4e373fe362b3abe2dd3a39"
#endif // DINVERDCGUI_VERSION
ENDVERSION
replaceFile $BUILD_DIR/DinverDCGui/src DinverDCGuiVersion.h
echo "Configure DinverDCGui"
cd "DinverDCGui"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir DinverDCGui -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          DinverDCGui \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/QGpCoreStat/src || mkdir -p $BUILD_DIR/QGpCoreStat/src
cat <<ENDVERSION > $TEMP_DIR/QGpCoreStatVersion.h
#ifndef QGPCORESTAT_VERSION
#define QGPCORESTAT_VERSION "1.1.0"
#define QGPCORESTAT_VERSION_TIME "202006291324"
#define QGPCORESTAT_VERSION_TYPE "3.3"
#define QGPCORESTAT_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)"
#define QGPCORESTAT_DISTRIBUTION "3.3.3"
#define QGPCORESTAT_GIT_COMMIT "eebf08c0598221888104b876dac8a61b30d60441"
#endif // QGPCORESTAT_VERSION
ENDVERSION
replaceFile $BUILD_DIR/QGpCoreStat/src QGpCoreStatVersion.h
echo "Configure QGpCoreStat"
cd "QGpCoreStat"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir QGpCoreStat -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          QGpCoreStat \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/HVCore/src || mkdir -p $BUILD_DIR/HVCore/src
cat <<ENDVERSION > $TEMP_DIR/HVCoreVersion.h
#ifndef HVCORE_VERSION
#define HVCORE_VERSION "1.0.2"
#define HVCORE_VERSION_TIME "202010061250"
#define HVCORE_VERSION_TYPE "3.3"
#define HVCORE_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)"
#define HVCORE_DISTRIBUTION "3.3.3"
#define HVCORE_GIT_COMMIT "70f210ee7d70edd020e6adbeff4e5240cdd829e6"
#endif // HVCORE_VERSION
ENDVERSION
replaceFile $BUILD_DIR/HVCore/src HVCoreVersion.h
echo "Configure HVCore"
cd "HVCore"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir HVCore -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          HVCore \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/HVGui/src || mkdir -p $BUILD_DIR/HVGui/src
cat <<ENDVERSION > $TEMP_DIR/HVGuiVersion.h
#ifndef HVGUI_VERSION
#define HVGUI_VERSION "1.0.0"
#define HVGUI_VERSION_TIME "202006291324"
#define HVGUI_VERSION_TYPE "3.3"
#define HVGUI_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define HVGUI_DISTRIBUTION "3.3.3"
#define HVGUI_GIT_COMMIT "3a8d1846879a68ba28e4fd5a2e1a46d16ec04f87"
#endif // HVGUI_VERSION
ENDVERSION
replaceFile $BUILD_DIR/HVGui/src HVGuiVersion.h
echo "Configure HVGui"
cd "HVGui"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir HVGui -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          HVGui \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/ArrayCore/src || mkdir -p $BUILD_DIR/ArrayCore/src
cat <<ENDVERSION > $TEMP_DIR/ArrayCoreVersion.h
#ifndef ARRAYCORE_VERSION
#define ARRAYCORE_VERSION "4.0.3"
#define ARRAYCORE_VERSION_TIME "202010061250"
#define ARRAYCORE_VERSION_TYPE "3.3"
#define ARRAYCORE_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define ARRAYCORE_DISTRIBUTION "3.3.3"
#define ARRAYCORE_GIT_COMMIT "35bfc8829edd50529daf0bf212a1b6aefa2a3b2b"
#endif // ARRAYCORE_VERSION
ENDVERSION
replaceFile $BUILD_DIR/ArrayCore/src ArrayCoreVersion.h
echo "Configure ArrayCore"
cd "ArrayCore"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir ArrayCore -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          ArrayCore \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/ArrayGui/src || mkdir -p $BUILD_DIR/ArrayGui/src
cat <<ENDVERSION > $TEMP_DIR/ArrayGuiVersion.h
#ifndef ARRAYGUI_VERSION
#define ARRAYGUI_VERSION "1.2.1"
#define ARRAYGUI_VERSION_TIME "202007131310"
#define ARRAYGUI_VERSION_TYPE "3.3"
#define ARRAYGUI_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define ARRAYGUI_DISTRIBUTION "3.3.3"
#define ARRAYGUI_GIT_COMMIT "b843aa9d9163c8173994f562e819daf5701fbe5b"
#endif // ARRAYGUI_VERSION
ENDVERSION
replaceFile $BUILD_DIR/ArrayGui/src ArrayGuiVersion.h
echo "Configure ArrayGui"
cd "ArrayGui"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir ArrayGui -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          ArrayGui \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/geopsy-fk/src || mkdir -p $BUILD_DIR/geopsy-fk/src
cat <<ENDVERSION > $TEMP_DIR/geopsy-fkVersion.h
#ifndef GEOPSY_FK_VERSION
#define GEOPSY_FK_VERSION "1.0.1"
#define GEOPSY_FK_VERSION_TIME "202006291324"
#define GEOPSY_FK_VERSION_TYPE "3.3"
#define GEOPSY_FK_AUTHORS "Marc Wathelet (ISTerre, Grenoble, France)"
#define GEOPSY_FK_DISTRIBUTION "3.3.3"
#define GEOPSY_FK_GIT_COMMIT "12aae9f6fac8238be520dffab42ec367f5c88b16"
#endif // GEOPSY_FK_VERSION
ENDVERSION
replaceFile $BUILD_DIR/geopsy-fk/src geopsy-fkVersion.h
echo "Configure geopsy-fk"
cd "geopsy-fk"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir geopsy-fk -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          geopsy-fk \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/geopsy-spac/src || mkdir -p $BUILD_DIR/geopsy-spac/src
cat <<ENDVERSION > $TEMP_DIR/geopsy-spacVersion.h
#ifndef GEOPSY_SPAC_VERSION
#define GEOPSY_SPAC_VERSION "1.0.1"
#define GEOPSY_SPAC_VERSION_TIME "202006291324"
#define GEOPSY_SPAC_VERSION_TYPE "3.3"
#define GEOPSY_SPAC_AUTHORS ""
#define GEOPSY_SPAC_DISTRIBUTION "3.3.3"
#define GEOPSY_SPAC_GIT_COMMIT "4447600cf45903bb299db79bada48c92341999c3"
#endif // GEOPSY_SPAC_VERSION
ENDVERSION
replaceFile $BUILD_DIR/geopsy-spac/src geopsy-spacVersion.h
echo "Configure geopsy-spac"
cd "geopsy-spac"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir geopsy-spac -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          geopsy-spac \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/geopsy-hv/src || mkdir -p $BUILD_DIR/geopsy-hv/src
cat <<ENDVERSION > $TEMP_DIR/geopsy-hvVersion.h
#ifndef GEOPSY_HV_VERSION
#define GEOPSY_HV_VERSION "1.0.0"
#define GEOPSY_HV_VERSION_TIME "202006291324"
#define GEOPSY_HV_VERSION_TYPE "3.3"
#define GEOPSY_HV_AUTHORS ""
#define GEOPSY_HV_DISTRIBUTION "3.3.3"
#define GEOPSY_HV_GIT_COMMIT "7b9f5b9f843e1de8680ea3b445b69e54a0aa952e"
#endif // GEOPSY_HV_VERSION
ENDVERSION
replaceFile $BUILD_DIR/geopsy-hv/src geopsy-hvVersion.h
echo "Configure geopsy-hv"
cd "geopsy-hv"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir geopsy-hv -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          geopsy-hv \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/geopsy/src || mkdir -p $BUILD_DIR/geopsy/src
cat <<ENDVERSION > $TEMP_DIR/geopsyVersion.h
#ifndef GEOPSY_VERSION
#define GEOPSY_VERSION "3.3.2"
#define GEOPSY_VERSION_TIME "202010061305"
#define GEOPSY_VERSION_TYPE "3.3"
#define GEOPSY_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define GEOPSY_DISTRIBUTION "3.3.3"
#define GEOPSY_GIT_COMMIT "f249f2e8d85275ff2694f5c949ae38339afc3974"
#endif // GEOPSY_VERSION
ENDVERSION
replaceFile $BUILD_DIR/geopsy/src geopsyVersion.h
echo "Configure geopsy"
cd "geopsy"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir geopsy -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          geopsy \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/vslarray/src || mkdir -p $BUILD_DIR/vslarray/src
cat <<ENDVERSION > $TEMP_DIR/vslarrayVersion.h
#ifndef VSLARRAY_VERSION
#define VSLARRAY_VERSION "1.0.1"
#define VSLARRAY_VERSION_TIME "202006291324"
#define VSLARRAY_VERSION_TYPE "3.3"
#define VSLARRAY_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define VSLARRAY_DISTRIBUTION "3.3.3"
#define VSLARRAY_GIT_COMMIT "115d8a033269d48720ba5c8101e80943fcec4c7a"
#endif // VSLARRAY_VERSION
ENDVERSION
replaceFile $BUILD_DIR/vslarray/src vslarrayVersion.h
echo "Configure vslarray"
cd "vslarray"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir vslarray -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          vslarray \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/dinver/src || mkdir -p $BUILD_DIR/dinver/src
cat <<ENDVERSION > $TEMP_DIR/dinverVersion.h
#ifndef DINVER_VERSION
#define DINVER_VERSION "1.1.1"
#define DINVER_VERSION_TIME "202010061305"
#define DINVER_VERSION_TYPE "3.3"
#define DINVER_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define DINVER_DISTRIBUTION "3.3.3"
#define DINVER_GIT_COMMIT "da80ee9b3f3e4ff14cec22d920428dbf6cb5b876"
#endif // DINVER_VERSION
ENDVERSION
replaceFile $BUILD_DIR/dinver/src dinverVersion.h
echo "Configure dinver"
cd "dinver"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir dinver -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          dinver \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/WaranCore/src || mkdir -p $BUILD_DIR/WaranCore/src
cat <<ENDVERSION > $TEMP_DIR/WaranCoreVersion.h
#ifndef WARANCORE_VERSION
#define WARANCORE_VERSION "1.0.0"
#define WARANCORE_VERSION_TIME "202006291324"
#define WARANCORE_VERSION_TYPE "3.3"
#define WARANCORE_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define WARANCORE_DISTRIBUTION "3.3.3"
#define WARANCORE_GIT_COMMIT "0a26dacb752adbf8fe753c082a9357f3507bcd7e"
#endif // WARANCORE_VERSION
ENDVERSION
replaceFile $BUILD_DIR/WaranCore/src WaranCoreVersion.h
echo "Configure WaranCore"
cd "WaranCore"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir WaranCore -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          WaranCore \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/TapePositioningSystem/src || mkdir -p $BUILD_DIR/TapePositioningSystem/src
cat <<ENDVERSION > $TEMP_DIR/TapePositioningSystemVersion.h
#ifndef TAPEPOSITIONINGSYSTEM_VERSION
#define TAPEPOSITIONINGSYSTEM_VERSION "1.0.1"
#define TAPEPOSITIONINGSYSTEM_VERSION_TIME "202006291324"
#define TAPEPOSITIONINGSYSTEM_VERSION_TYPE "3.3"
#define TAPEPOSITIONINGSYSTEM_AUTHORS "Marc Wathelet (ISTerre, Grenoble, France)"
#define TAPEPOSITIONINGSYSTEM_DISTRIBUTION "3.3.3"
#define TAPEPOSITIONINGSYSTEM_GIT_COMMIT "b0664e987b2a49f8ae7fe9c537c2c022db3578c8"
#endif // TAPEPOSITIONINGSYSTEM_VERSION
ENDVERSION
replaceFile $BUILD_DIR/TapePositioningSystem/src TapePositioningSystemVersion.h
echo "Configure TapePositioningSystem"
cd "TapePositioningSystem"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir TapePositioningSystem -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          TapePositioningSystem \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/waran/src || mkdir -p $BUILD_DIR/waran/src
cat <<ENDVERSION > $TEMP_DIR/waranVersion.h
#ifndef WARAN_VERSION
#define WARAN_VERSION "1.1.1"
#define WARAN_VERSION_TIME "202006291324"
#define WARAN_VERSION_TYPE "3.3"
#define WARAN_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)"
#define WARAN_DISTRIBUTION "3.3.3"
#define WARAN_GIT_COMMIT "c21eb40b274e32cda82659451bbde29c3e5c0779"
#endif // WARAN_VERSION
ENDVERSION
replaceFile $BUILD_DIR/waran/src waranVersion.h
echo "Configure waran"
cd "waran"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir waran -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          waran \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/warangps/src || mkdir -p $BUILD_DIR/warangps/src
cat <<ENDVERSION > $TEMP_DIR/warangpsVersion.h
#ifndef WARANGPS_VERSION
#define WARANGPS_VERSION "1.1.2"
#define WARANGPS_VERSION_TIME "202007131310"
#define WARANGPS_VERSION_TYPE "3.3"
#define WARANGPS_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define WARANGPS_DISTRIBUTION "3.3.3"
#define WARANGPS_GIT_COMMIT "cd130f28af22c3350ff11e818f29b9b3a8f44988"
#endif // WARANGPS_VERSION
ENDVERSION
replaceFile $BUILD_DIR/warangps/src warangpsVersion.h
echo "Configure warangps"
cd "warangps"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir warangps -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          warangps \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/geopsyarray/src || mkdir -p $BUILD_DIR/geopsyarray/src
cat <<ENDVERSION > $TEMP_DIR/geopsyarrayVersion.h
#ifndef GEOPSYARRAY_VERSION
#define GEOPSYARRAY_VERSION "3.2.1"
#define GEOPSYARRAY_VERSION_TIME "202007131310"
#define GEOPSYARRAY_VERSION_TYPE "3.3"
#define GEOPSYARRAY_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define GEOPSYARRAY_DISTRIBUTION "3.3.3"
#define GEOPSYARRAY_GIT_COMMIT "ad36c6e4443e7e5c88542574509ba201a86032ac"
#endif // GEOPSYARRAY_VERSION
ENDVERSION
replaceFile $BUILD_DIR/geopsyarray/src geopsyarrayVersion.h
echo "Configure geopsyarray"
cd "geopsyarray"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir geopsyarray -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          geopsyarray \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/geopsyhv/src || mkdir -p $BUILD_DIR/geopsyhv/src
cat <<ENDVERSION > $TEMP_DIR/geopsyhvVersion.h
#ifndef GEOPSYHV_VERSION
#define GEOPSYHV_VERSION "4.0.0"
#define GEOPSYHV_VERSION_TIME "202006291324"
#define GEOPSYHV_VERSION_TYPE "3.3"
#define GEOPSYHV_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define GEOPSYHV_DISTRIBUTION "3.3.3"
#define GEOPSYHV_GIT_COMMIT "4ccb5a1ce6ab88f1f6fffc574e70e3485909a970"
#endif // GEOPSYHV_VERSION
ENDVERSION
replaceFile $BUILD_DIR/geopsyhv/src geopsyhvVersion.h
echo "Configure geopsyhv"
cd "geopsyhv"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir geopsyhv -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          geopsyhv \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/geopsydamping/src || mkdir -p $BUILD_DIR/geopsydamping/src
cat <<ENDVERSION > $TEMP_DIR/geopsydampingVersion.h
#ifndef GEOPSYDAMPING_VERSION
#define GEOPSYDAMPING_VERSION "2.1.1"
#define GEOPSYDAMPING_VERSION_TIME "202007301156"
#define GEOPSYDAMPING_VERSION_TYPE "3.3"
#define GEOPSYDAMPING_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define GEOPSYDAMPING_DISTRIBUTION "3.3.3"
#define GEOPSYDAMPING_GIT_COMMIT "9ccebd2898be21ee56f866774fdc23a1a211bdff"
#endif // GEOPSYDAMPING_VERSION
ENDVERSION
replaceFile $BUILD_DIR/geopsydamping/src geopsydampingVersion.h
echo "Configure geopsydamping"
cd "geopsydamping"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir geopsydamping -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          geopsydamping \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/geopsytfa/src || mkdir -p $BUILD_DIR/geopsytfa/src
cat <<ENDVERSION > $TEMP_DIR/geopsytfaVersion.h
#ifndef GEOPSYTFA_VERSION
#define GEOPSYTFA_VERSION "2.1.0"
#define GEOPSYTFA_VERSION_TIME "202006291324"
#define GEOPSYTFA_VERSION_TYPE "3.3"
#define GEOPSYTFA_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GEOPSYTFA_DISTRIBUTION "3.3.3"
#define GEOPSYTFA_GIT_COMMIT "350fe3d0f8b017f193b7985b8a0b8cf39fa562e1"
#endif // GEOPSYTFA_VERSION
ENDVERSION
replaceFile $BUILD_DIR/geopsytfa/src geopsytfaVersion.h
echo "Configure geopsytfa"
cd "geopsytfa"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir geopsytfa -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          geopsytfa \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/geopsynr/src || mkdir -p $BUILD_DIR/geopsynr/src
cat <<ENDVERSION > $TEMP_DIR/geopsynrVersion.h
#ifndef GEOPSYNR_VERSION
#define GEOPSYNR_VERSION "1.1.0"
#define GEOPSYNR_VERSION_TIME "202006291326"
#define GEOPSYNR_VERSION_TYPE "3.3"
#define GEOPSYNR_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GEOPSYNR_DISTRIBUTION "3.3.3"
#define GEOPSYNR_GIT_COMMIT "d5ed961018c8927c6fd19a6f2978d304b26e0642"
#endif // GEOPSYNR_VERSION
ENDVERSION
replaceFile $BUILD_DIR/geopsynr/src geopsynrVersion.h
echo "Configure geopsynr"
cd "geopsynr"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir geopsynr -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          geopsynr \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/geopsyptmotion/src || mkdir -p $BUILD_DIR/geopsyptmotion/src
cat <<ENDVERSION > $TEMP_DIR/geopsyptmotionVersion.h
#ifndef GEOPSYPTMOTION_VERSION
#define GEOPSYPTMOTION_VERSION "2.0.2"
#define GEOPSYPTMOTION_VERSION_TIME "202010061306"
#define GEOPSYPTMOTION_VERSION_TYPE "3.3"
#define GEOPSYPTMOTION_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define GEOPSYPTMOTION_DISTRIBUTION "3.3.3"
#define GEOPSYPTMOTION_GIT_COMMIT "e04d740f09629e1b0b7eb965f6de40bc322c689f"
#endif // GEOPSYPTMOTION_VERSION
ENDVERSION
replaceFile $BUILD_DIR/geopsyptmotion/src geopsyptmotionVersion.h
echo "Configure geopsyptmotion"
cd "geopsyptmotion"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir geopsyptmotion -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          geopsyptmotion \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/geopsyrefra/src || mkdir -p $BUILD_DIR/geopsyrefra/src
cat <<ENDVERSION > $TEMP_DIR/geopsyrefraVersion.h
#ifndef GEOPSYREFRA_VERSION
#define GEOPSYREFRA_VERSION "2.0.1"
#define GEOPSYREFRA_VERSION_TIME "202006291326"
#define GEOPSYREFRA_VERSION_TYPE "3.3"
#define GEOPSYREFRA_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define GEOPSYREFRA_DISTRIBUTION "3.3.3"
#define GEOPSYREFRA_GIT_COMMIT "47286bdb8d13cfc21a89a20d313d3308452f1770"
#endif // GEOPSYREFRA_VERSION
ENDVERSION
replaceFile $BUILD_DIR/geopsyrefra/src geopsyrefraVersion.h
echo "Configure geopsyrefra"
cd "geopsyrefra"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir geopsyrefra -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          geopsyrefra \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/hvtfa/src || mkdir -p $BUILD_DIR/hvtfa/src
cat <<ENDVERSION > $TEMP_DIR/hvtfaVersion.h
#ifndef HVTFA_VERSION
#define HVTFA_VERSION "2.1.1"
#define HVTFA_VERSION_TIME "202007301156"
#define HVTFA_VERSION_TYPE "3.3"
#define HVTFA_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)\nMiriam Kristekova (Geophysical Institute, Academy of Sciences, Bratislava, Slovak Republic)"
#define HVTFA_DISTRIBUTION "3.3.3"
#define HVTFA_GIT_COMMIT "0c814bb9ab0b56b4366c25e27936ff2d040e873d"
#endif // HVTFA_VERSION
ENDVERSION
replaceFile $BUILD_DIR/hvtfa/src hvtfaVersion.h
echo "Configure hvtfa"
cd "hvtfa"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir hvtfa -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          hvtfa \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/campbelltob3/src || mkdir -p $BUILD_DIR/campbelltob3/src
cat <<ENDVERSION > $TEMP_DIR/campbelltob3Version.h
#ifndef CAMPBELLTOB3_VERSION
#define CAMPBELLTOB3_VERSION "1.0.1"
#define CAMPBELLTOB3_VERSION_TIME "202006291326"
#define CAMPBELLTOB3_VERSION_TYPE "3.3"
#define CAMPBELLTOB3_AUTHORS "Marc Wathelet (ISTerre, Grenoble, France)"
#define CAMPBELLTOB3_DISTRIBUTION "3.3.3"
#define CAMPBELLTOB3_GIT_COMMIT "f2f3682c002a3b8e2252f00834d11219dad6a65a"
#endif // CAMPBELLTOB3_VERSION
ENDVERSION
replaceFile $BUILD_DIR/campbelltob3/src campbelltob3Version.h
echo "Configure campbelltob3"
cd "campbelltob3"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir campbelltob3 -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          campbelltob3 \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/dinverdc/src || mkdir -p $BUILD_DIR/dinverdc/src
cat <<ENDVERSION > $TEMP_DIR/dinverdcVersion.h
#ifndef DINVERDC_VERSION
#define DINVERDC_VERSION "2.1.0"
#define DINVERDC_VERSION_TIME "202006291326"
#define DINVERDC_VERSION_TYPE "3.3"
#define DINVERDC_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define DINVERDC_DISTRIBUTION "3.3.3"
#define DINVERDC_GIT_COMMIT "b38486d8a689cfab587af80f28d7a5a95b6b783b"
#endif // DINVERDC_VERSION
ENDVERSION
replaceFile $BUILD_DIR/dinverdc/src dinverdcVersion.h
echo "Configure dinverdc"
cd "dinverdc"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir dinverdc -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          dinverdc \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/dinverext/src || mkdir -p $BUILD_DIR/dinverext/src
cat <<ENDVERSION > $TEMP_DIR/dinverextVersion.h
#ifndef DINVEREXT_VERSION
#define DINVEREXT_VERSION "1.0.4"
#define DINVEREXT_VERSION_TIME "202010061306"
#define DINVEREXT_VERSION_TYPE "3.3"
#define DINVEREXT_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define DINVEREXT_DISTRIBUTION "3.3.3"
#define DINVEREXT_GIT_COMMIT "525c0da017e1d5b6bdd32aab404e4f530f1249c1"
#endif // DINVEREXT_VERSION
ENDVERSION
replaceFile $BUILD_DIR/dinverext/src dinverextVersion.h
echo "Configure dinverext"
cd "dinverext"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir dinverext -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          dinverext \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/spac2disp/src || mkdir -p $BUILD_DIR/spac2disp/src
cat <<ENDVERSION > $TEMP_DIR/spac2dispVersion.h
#ifndef SPAC2DISP_VERSION
#define SPAC2DISP_VERSION "1.0.2"
#define SPAC2DISP_VERSION_TIME "202007301156"
#define SPAC2DISP_VERSION_TYPE "3.3"
#define SPAC2DISP_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)\nMarc Wathelet (ULg, Liège, Belgium)"
#define SPAC2DISP_DISTRIBUTION "3.3.3"
#define SPAC2DISP_GIT_COMMIT "8664d269d28d737d7eae8cd45e74e745b31eb51b"
#endif // SPAC2DISP_VERSION
ENDVERSION
replaceFile $BUILD_DIR/spac2disp/src spac2dispVersion.h
echo "Configure spac2disp"
cd "spac2disp"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir spac2disp -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          spac2disp \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/max2curve/src || mkdir -p $BUILD_DIR/max2curve/src
cat <<ENDVERSION > $TEMP_DIR/max2curveVersion.h
#ifndef MAX2CURVE_VERSION
#define MAX2CURVE_VERSION "1.1.1"
#define MAX2CURVE_VERSION_TIME "202006291326"
#define MAX2CURVE_VERSION_TYPE "3.3"
#define MAX2CURVE_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define MAX2CURVE_DISTRIBUTION "3.3.3"
#define MAX2CURVE_GIT_COMMIT "58dfc683a23516fbf0f95dba457fa8bbba992c37"
#endif // MAX2CURVE_VERSION
ENDVERSION
replaceFile $BUILD_DIR/max2curve/src max2curveVersion.h
echo "Configure max2curve"
cd "max2curve"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir max2curve -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          max2curve \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gppoisson/src || mkdir -p $BUILD_DIR/gppoisson/src
cat <<ENDVERSION > $TEMP_DIR/gppoissonVersion.h
#ifndef GPPOISSON_VERSION
#define GPPOISSON_VERSION "2.0.0"
#define GPPOISSON_VERSION_TIME "202006291326"
#define GPPOISSON_VERSION_TYPE "3.3"
#define GPPOISSON_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPPOISSON_DISTRIBUTION "3.3.3"
#define GPPOISSON_GIT_COMMIT "a5bebe389e35227d7c795947a79afa573e97c824"
#endif // GPPOISSON_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gppoisson/src gppoissonVersion.h
echo "Configure gppoisson"
cd "gppoisson"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gppoisson -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gppoisson \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpprofile/src || mkdir -p $BUILD_DIR/gpprofile/src
cat <<ENDVERSION > $TEMP_DIR/gpprofileVersion.h
#ifndef GPPROFILE_VERSION
#define GPPROFILE_VERSION "1.1.1"
#define GPPROFILE_VERSION_TIME "202006291326"
#define GPPROFILE_VERSION_TYPE "3.3"
#define GPPROFILE_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPPROFILE_DISTRIBUTION "3.3.3"
#define GPPROFILE_GIT_COMMIT "223d520ec56159c2326249473a03b0504b04efd0"
#endif // GPPROFILE_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpprofile/src gpprofileVersion.h
echo "Configure gpprofile"
cd "gpprofile"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpprofile -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpprofile \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpdc/src || mkdir -p $BUILD_DIR/gpdc/src
cat <<ENDVERSION > $TEMP_DIR/gpdcVersion.h
#ifndef GPDC_VERSION
#define GPDC_VERSION "1.0.2"
#define GPDC_VERSION_TIME "202006291326"
#define GPDC_VERSION_TYPE "3.3"
#define GPDC_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPDC_DISTRIBUTION "3.3.3"
#define GPDC_GIT_COMMIT "9000bac2d3aeab9cd7fb63aef4f67475229d11df"
#endif // GPDC_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpdc/src gpdcVersion.h
echo "Configure gpdc"
cd "gpdc"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpdc -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpdc \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gplivemodel/src || mkdir -p $BUILD_DIR/gplivemodel/src
cat <<ENDVERSION > $TEMP_DIR/gplivemodelVersion.h
#ifndef GPLIVEMODEL_VERSION
#define GPLIVEMODEL_VERSION "1.0.2"
#define GPLIVEMODEL_VERSION_TIME "202006291326"
#define GPLIVEMODEL_VERSION_TYPE "3.3"
#define GPLIVEMODEL_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPLIVEMODEL_DISTRIBUTION "3.3.3"
#define GPLIVEMODEL_GIT_COMMIT "26783f7726d811bd92d705b9a39084aa45ec4a9e"
#endif // GPLIVEMODEL_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gplivemodel/src gplivemodelVersion.h
echo "Configure gplivemodel"
cd "gplivemodel"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gplivemodel -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gplivemodel \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpec8/src || mkdir -p $BUILD_DIR/gpec8/src
cat <<ENDVERSION > $TEMP_DIR/gpec8Version.h
#ifndef GPEC8_VERSION
#define GPEC8_VERSION "1.0.0"
#define GPEC8_VERSION_TIME "202006291326"
#define GPEC8_VERSION_TYPE "3.3"
#define GPEC8_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPEC8_DISTRIBUTION "3.3.3"
#define GPEC8_GIT_COMMIT "2e23c712c77f42efa48497323bd49edb633974c6"
#endif // GPEC8_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpec8/src gpec8Version.h
echo "Configure gpec8"
cd "gpec8"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpec8 -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpec8 \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpdcreport/src || mkdir -p $BUILD_DIR/gpdcreport/src
cat <<ENDVERSION > $TEMP_DIR/gpdcreportVersion.h
#ifndef GPDCREPORT_VERSION
#define GPDCREPORT_VERSION "1.0.4"
#define GPDCREPORT_VERSION_TIME "202007301156"
#define GPDCREPORT_VERSION_TYPE "3.3"
#define GPDCREPORT_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPDCREPORT_DISTRIBUTION "3.3.3"
#define GPDCREPORT_GIT_COMMIT "89d8f56dc438dfdaad92793d3ca69f2282933045"
#endif // GPDCREPORT_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpdcreport/src gpdcreportVersion.h
echo "Configure gpdcreport"
cd "gpdcreport"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpdcreport -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpdcreport \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gptarget/src || mkdir -p $BUILD_DIR/gptarget/src
cat <<ENDVERSION > $TEMP_DIR/gptargetVersion.h
#ifndef GPTARGET_VERSION
#define GPTARGET_VERSION "1.0.2"
#define GPTARGET_VERSION_TIME "202006291326"
#define GPTARGET_VERSION_TYPE "3.3"
#define GPTARGET_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPTARGET_DISTRIBUTION "3.3.3"
#define GPTARGET_GIT_COMMIT "f144275e07b803bef565a5cd3ece9621339933ad"
#endif // GPTARGET_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gptarget/src gptargetVersion.h
echo "Configure gptarget"
cd "gptarget"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gptarget -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gptarget \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpviewdcreport/src || mkdir -p $BUILD_DIR/gpviewdcreport/src
cat <<ENDVERSION > $TEMP_DIR/gpviewdcreportVersion.h
#ifndef GPVIEWDCREPORT_VERSION
#define GPVIEWDCREPORT_VERSION "1.0.1"
#define GPVIEWDCREPORT_VERSION_TIME "202006291326"
#define GPVIEWDCREPORT_VERSION_TYPE "3.3"
#define GPVIEWDCREPORT_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPVIEWDCREPORT_DISTRIBUTION "3.3.3"
#define GPVIEWDCREPORT_GIT_COMMIT "d38479cc9fb7bb033290ed3da1dc38ddd6fd7ae4"
#endif // GPVIEWDCREPORT_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpviewdcreport/src gpviewdcreportVersion.h
echo "Configure gpviewdcreport"
cd "gpviewdcreport"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpviewdcreport -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpviewdcreport \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpdcmisfit/src || mkdir -p $BUILD_DIR/gpdcmisfit/src
cat <<ENDVERSION > $TEMP_DIR/gpdcmisfitVersion.h
#ifndef GPDCMISFIT_VERSION
#define GPDCMISFIT_VERSION "1.0.0"
#define GPDCMISFIT_VERSION_TIME "202006291326"
#define GPDCMISFIT_VERSION_TYPE "3.3"
#define GPDCMISFIT_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPDCMISFIT_DISTRIBUTION "3.3.3"
#define GPDCMISFIT_GIT_COMMIT "325e554f88c2d0135d3a5186a2f537b5bff031c7"
#endif // GPDCMISFIT_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpdcmisfit/src gpdcmisfitVersion.h
echo "Configure gpdcmisfit"
cd "gpdcmisfit"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpdcmisfit -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpdcmisfit \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpell/src || mkdir -p $BUILD_DIR/gpell/src
cat <<ENDVERSION > $TEMP_DIR/gpellVersion.h
#ifndef GPELL_VERSION
#define GPELL_VERSION "1.0.1"
#define GPELL_VERSION_TIME "202006291326"
#define GPELL_VERSION_TYPE "3.3"
#define GPELL_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPELL_DISTRIBUTION "3.3.3"
#define GPELL_GIT_COMMIT "778c1083d80fe49e98145a5482a6f46eae2fd620"
#endif // GPELL_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpell/src gpellVersion.h
echo "Configure gpell"
cd "gpell"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpell -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpell \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpgroup2phase/src || mkdir -p $BUILD_DIR/gpgroup2phase/src
cat <<ENDVERSION > $TEMP_DIR/gpgroup2phaseVersion.h
#ifndef GPGROUP2PHASE_VERSION
#define GPGROUP2PHASE_VERSION "1.0.0"
#define GPGROUP2PHASE_VERSION_TIME "202006291326"
#define GPGROUP2PHASE_VERSION_TYPE "3.3"
#define GPGROUP2PHASE_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPGROUP2PHASE_DISTRIBUTION "3.3.3"
#define GPGROUP2PHASE_GIT_COMMIT "6c10143372a44b1700a052f6089a50ab8968480e"
#endif // GPGROUP2PHASE_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpgroup2phase/src gpgroup2phaseVersion.h
echo "Configure gpgroup2phase"
cd "gpgroup2phase"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpgroup2phase -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpgroup2phase \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpmodel2param/src || mkdir -p $BUILD_DIR/gpmodel2param/src
cat <<ENDVERSION > $TEMP_DIR/gpmodel2paramVersion.h
#ifndef GPMODEL2PARAM_VERSION
#define GPMODEL2PARAM_VERSION "1.0.0"
#define GPMODEL2PARAM_VERSION_TIME "202006291326"
#define GPMODEL2PARAM_VERSION_TYPE "3.3"
#define GPMODEL2PARAM_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPMODEL2PARAM_DISTRIBUTION "3.3.3"
#define GPMODEL2PARAM_GIT_COMMIT "d8b149a0ddc81a39cf18c153833b338fb9ecaab7"
#endif // GPMODEL2PARAM_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpmodel2param/src gpmodel2paramVersion.h
echo "Configure gpmodel2param"
cd "gpmodel2param"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpmodel2param -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpmodel2param \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpparam2model/src || mkdir -p $BUILD_DIR/gpparam2model/src
cat <<ENDVERSION > $TEMP_DIR/gpparam2modelVersion.h
#ifndef GPPARAM2MODEL_VERSION
#define GPPARAM2MODEL_VERSION "1.0.0"
#define GPPARAM2MODEL_VERSION_TIME "202006291326"
#define GPPARAM2MODEL_VERSION_TYPE "3.3"
#define GPPARAM2MODEL_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPPARAM2MODEL_DISTRIBUTION "3.3.3"
#define GPPARAM2MODEL_GIT_COMMIT "76aadffbbed4ffd9061e0693417fab8e1dd13f16"
#endif // GPPARAM2MODEL_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpparam2model/src gpparam2modelVersion.h
echo "Configure gpparam2model"
cd "gpparam2model"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpparam2model -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpparam2model \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpdepths/src || mkdir -p $BUILD_DIR/gpdepths/src
cat <<ENDVERSION > $TEMP_DIR/gpdepthsVersion.h
#ifndef GPDEPTHS_VERSION
#define GPDEPTHS_VERSION "1.0.0"
#define GPDEPTHS_VERSION_TIME "202006291326"
#define GPDEPTHS_VERSION_TYPE "3.3"
#define GPDEPTHS_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPDEPTHS_DISTRIBUTION "3.3.3"
#define GPDEPTHS_GIT_COMMIT "100fedeba1affdf11c6f03021360baa86a93e0b0"
#endif // GPDEPTHS_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpdepths/src gpdepthsVersion.h
echo "Configure gpdepths"
cd "gpdepths"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpdepths -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpdepths \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpsort/src || mkdir -p $BUILD_DIR/gpsort/src
cat <<ENDVERSION > $TEMP_DIR/gpsortVersion.h
#ifndef GPSORT_VERSION
#define GPSORT_VERSION "1.0.0"
#define GPSORT_VERSION_TIME "202006291326"
#define GPSORT_VERSION_TYPE "3.3"
#define GPSORT_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPSORT_DISTRIBUTION "3.3.3"
#define GPSORT_GIT_COMMIT "df6f6a1b1d28003b0ffb2bbfa23359eb1cb69fa8"
#endif // GPSORT_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpsort/src gpsortVersion.h
echo "Configure gpsort"
cd "gpsort"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpsort -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpsort \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpcurve/src || mkdir -p $BUILD_DIR/gpcurve/src
cat <<ENDVERSION > $TEMP_DIR/gpcurveVersion.h
#ifndef GPCURVE_VERSION
#define GPCURVE_VERSION "1.0.1"
#define GPCURVE_VERSION_TIME "202010061306"
#define GPCURVE_VERSION_TYPE "3.3"
#define GPCURVE_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPCURVE_DISTRIBUTION "3.3.3"
#define GPCURVE_GIT_COMMIT "bdb5067e92c239e5e4f5ca1fe187fc69dc947def"
#endif // GPCURVE_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpcurve/src gpcurveVersion.h
echo "Configure gpcurve"
cd "gpcurve"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpcurve -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpcurve \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gprandom/src || mkdir -p $BUILD_DIR/gprandom/src
cat <<ENDVERSION > $TEMP_DIR/gprandomVersion.h
#ifndef GPRANDOM_VERSION
#define GPRANDOM_VERSION "1.0.0"
#define GPRANDOM_VERSION_TIME "202006291326"
#define GPRANDOM_VERSION_TYPE "3.3"
#define GPRANDOM_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPRANDOM_DISTRIBUTION "3.3.3"
#define GPRANDOM_GIT_COMMIT "00427cbe997835b69127c2abc8fa65e25ad41ee6"
#endif // GPRANDOM_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gprandom/src gprandomVersion.h
echo "Configure gprandom"
cd "gprandom"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gprandom -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gprandom \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpspac/src || mkdir -p $BUILD_DIR/gpspac/src
cat <<ENDVERSION > $TEMP_DIR/gpspacVersion.h
#ifndef GPSPAC_VERSION
#define GPSPAC_VERSION "1.0.0"
#define GPSPAC_VERSION_TIME "202006291326"
#define GPSPAC_VERSION_TYPE "3.3"
#define GPSPAC_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPSPAC_DISTRIBUTION "3.3.3"
#define GPSPAC_GIT_COMMIT "e5ffe51954c81e1540cb0fc760508cb916443168"
#endif // GPSPAC_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpspac/src gpspacVersion.h
echo "Configure gpspac"
cd "gpspac"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpspac -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpspac \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gprefra/src || mkdir -p $BUILD_DIR/gprefra/src
cat <<ENDVERSION > $TEMP_DIR/gprefraVersion.h
#ifndef GPREFRA_VERSION
#define GPREFRA_VERSION "1.0.0"
#define GPREFRA_VERSION_TIME "202006291326"
#define GPREFRA_VERSION_TYPE "3.3"
#define GPREFRA_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPREFRA_DISTRIBUTION "3.3.3"
#define GPREFRA_GIT_COMMIT "6471639eb98bf4af5d5d18d84b8815632afb7c2d"
#endif // GPREFRA_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gprefra/src gprefraVersion.h
echo "Configure gprefra"
cd "gprefra"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gprefra -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gprefra \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpsignal/src || mkdir -p $BUILD_DIR/gpsignal/src
cat <<ENDVERSION > $TEMP_DIR/gpsignalVersion.h
#ifndef GPSIGNAL_VERSION
#define GPSIGNAL_VERSION "2.0.1"
#define GPSIGNAL_VERSION_TIME "202006291326"
#define GPSIGNAL_VERSION_TYPE "3.3"
#define GPSIGNAL_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPSIGNAL_DISTRIBUTION "3.3.3"
#define GPSIGNAL_GIT_COMMIT "151a0d64118a451179e555959b8f057a128da93e"
#endif // GPSIGNAL_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpsignal/src gpsignalVersion.h
echo "Configure gpsignal"
cd "gpsignal"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpsignal -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpsignal \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gphistogram/src || mkdir -p $BUILD_DIR/gphistogram/src
cat <<ENDVERSION > $TEMP_DIR/gphistogramVersion.h
#ifndef GPHISTOGRAM_VERSION
#define GPHISTOGRAM_VERSION "1.2.1"
#define GPHISTOGRAM_VERSION_TIME "202010061306"
#define GPHISTOGRAM_VERSION_TYPE "3.3"
#define GPHISTOGRAM_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPHISTOGRAM_DISTRIBUTION "3.3.3"
#define GPHISTOGRAM_GIT_COMMIT "a6fb88b153fd6db4188ad7f03bcaa410d8a63093"
#endif // GPHISTOGRAM_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gphistogram/src gphistogramVersion.h
echo "Configure gphistogram"
cd "gphistogram"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gphistogram -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gphistogram \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpviewmax/src || mkdir -p $BUILD_DIR/gpviewmax/src
cat <<ENDVERSION > $TEMP_DIR/gpviewmaxVersion.h
#ifndef GPVIEWMAX_VERSION
#define GPVIEWMAX_VERSION "1.1.0"
#define GPVIEWMAX_VERSION_TIME "202006291326"
#define GPVIEWMAX_VERSION_TYPE "3.3"
#define GPVIEWMAX_AUTHORS "Marc Wathelet (ISTerre, Grenoble, France)"
#define GPVIEWMAX_DISTRIBUTION "3.3.3"
#define GPVIEWMAX_GIT_COMMIT "e8c26a838d0e4ed6028c5cf44d963777b883a7e3"
#endif // GPVIEWMAX_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpviewmax/src gpviewmaxVersion.h
echo "Configure gpviewmax"
cd "gpviewmax"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpviewmax -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpviewmax \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpdistance/src || mkdir -p $BUILD_DIR/gpdistance/src
cat <<ENDVERSION > $TEMP_DIR/gpdistanceVersion.h
#ifndef GPDISTANCE_VERSION
#define GPDISTANCE_VERSION "1.0.0"
#define GPDISTANCE_VERSION_TIME "202006291326"
#define GPDISTANCE_VERSION_TYPE "3.3"
#define GPDISTANCE_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPDISTANCE_DISTRIBUTION "3.3.3"
#define GPDISTANCE_GIT_COMMIT "481450fd0162bfcd65832e95b1801ed4216e81ef"
#endif // GPDISTANCE_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpdistance/src gpdistanceVersion.h
echo "Configure gpdistance"
cd "gpdistance"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpdistance -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpdistance \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gptime/src || mkdir -p $BUILD_DIR/gptime/src
cat <<ENDVERSION > $TEMP_DIR/gptimeVersion.h
#ifndef GPTIME_VERSION
#define GPTIME_VERSION "1.1.0"
#define GPTIME_VERSION_TIME "202007131310"
#define GPTIME_VERSION_TYPE "3.3"
#define GPTIME_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPTIME_DISTRIBUTION "3.3.3"
#define GPTIME_GIT_COMMIT "4f871e51eaafa1f1c6e267dda2cf9ab3bd1cba9e"
#endif // GPTIME_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gptime/src gptimeVersion.h
echo "Configure gptime"
cd "gptime"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gptime -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gptime \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpcoord/src || mkdir -p $BUILD_DIR/gpcoord/src
cat <<ENDVERSION > $TEMP_DIR/gpcoordVersion.h
#ifndef GPCOORD_VERSION
#define GPCOORD_VERSION "1.0.1"
#define GPCOORD_VERSION_TIME "202006291326"
#define GPCOORD_VERSION_TYPE "3.3"
#define GPCOORD_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPCOORD_DISTRIBUTION "3.3.3"
#define GPCOORD_GIT_COMMIT "9319ff6bbc85ccb269b4e607eca441a8a00ae642"
#endif // GPCOORD_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpcoord/src gpcoordVersion.h
echo "Configure gpcoord"
cd "gpcoord"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpcoord -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpcoord \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpreplace/src || mkdir -p $BUILD_DIR/gpreplace/src
cat <<ENDVERSION > $TEMP_DIR/gpreplaceVersion.h
#ifndef GPREPLACE_VERSION
#define GPREPLACE_VERSION "1.0.0"
#define GPREPLACE_VERSION_TIME "202006291326"
#define GPREPLACE_VERSION_TYPE "3.3"
#define GPREPLACE_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPREPLACE_DISTRIBUTION "3.3.3"
#define GPREPLACE_GIT_COMMIT "1a0aa780fb4321fb92ddfe797f0092384d5eee48"
#endif // GPREPLACE_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpreplace/src gpreplaceVersion.h
echo "Configure gpreplace"
cd "gpreplace"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpreplace -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpreplace \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpsh/src || mkdir -p $BUILD_DIR/gpsh/src
cat <<ENDVERSION > $TEMP_DIR/gpshVersion.h
#ifndef GPSH_VERSION
#define GPSH_VERSION "1.0.0"
#define GPSH_VERSION_TIME "202006291326"
#define GPSH_VERSION_TYPE "3.3"
#define GPSH_AUTHORS "Marc Wathelet\nMarc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPSH_DISTRIBUTION "3.3.3"
#define GPSH_GIT_COMMIT "332cadbb18d72b8d22a7a88ca3e8dc5b7457d6b0"
#endif // GPSH_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpsh/src gpshVersion.h
echo "Configure gpsh"
cd "gpsh"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpsh -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpsh \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpmt/src || mkdir -p $BUILD_DIR/gpmt/src
cat <<ENDVERSION > $TEMP_DIR/gpmtVersion.h
#ifndef GPMT_VERSION
#define GPMT_VERSION "1.0.0"
#define GPMT_VERSION_TIME "202006291326"
#define GPMT_VERSION_TYPE "3.3"
#define GPMT_AUTHORS "Marc Wathelet (LGIT, Grenoble, France)"
#define GPMT_DISTRIBUTION "3.3.3"
#define GPMT_GIT_COMMIT "716b2df5f749ab572cc4a2d4068b75325a6ace89"
#endif // GPMT_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpmt/src gpmtVersion.h
echo "Configure gpmt"
cd "gpmt"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpmt -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpmt \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpgridsearch/src || mkdir -p $BUILD_DIR/gpgridsearch/src
cat <<ENDVERSION > $TEMP_DIR/gpgridsearchVersion.h
#ifndef GPGRIDSEARCH_VERSION
#define GPGRIDSEARCH_VERSION "1.0.1"
#define GPGRIDSEARCH_VERSION_TIME "202006291326"
#define GPGRIDSEARCH_VERSION_TYPE "3.3"
#define GPGRIDSEARCH_AUTHORS "Marc Wathelet (ISTerre, Grenoble, France)"
#define GPGRIDSEARCH_DISTRIBUTION "3.3.3"
#define GPGRIDSEARCH_GIT_COMMIT "99fdcc62f9547132bfc4f4f96f9f33bddbf5a1f3"
#endif // GPGRIDSEARCH_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpgridsearch/src gpgridsearchVersion.h
echo "Configure gpgridsearch"
cd "gpgridsearch"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpgridsearch -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpgridsearch \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpfksimulator/src || mkdir -p $BUILD_DIR/gpfksimulator/src
cat <<ENDVERSION > $TEMP_DIR/gpfksimulatorVersion.h
#ifndef GPFKSIMULATOR_VERSION
#define GPFKSIMULATOR_VERSION "1.1.1"
#define GPFKSIMULATOR_VERSION_TIME "202010061306"
#define GPFKSIMULATOR_VERSION_TYPE "3.3"
#define GPFKSIMULATOR_AUTHORS "Marc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)"
#define GPFKSIMULATOR_DISTRIBUTION "3.3.3"
#define GPFKSIMULATOR_GIT_COMMIT "66cb03805e9b6c88d78bc12304b576ddb538d3bb"
#endif // GPFKSIMULATOR_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpfksimulator/src gpfksimulatorVersion.h
echo "Configure gpfksimulator"
cd "gpfksimulator"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpfksimulator -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpfksimulator \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/gpmaplayer/src || mkdir -p $BUILD_DIR/gpmaplayer/src
cat <<ENDVERSION > $TEMP_DIR/gpmaplayerVersion.h
#ifndef GPMAPLAYER_VERSION
#define GPMAPLAYER_VERSION "1.0.1"
#define GPMAPLAYER_VERSION_TIME "202006291326"
#define GPMAPLAYER_VERSION_TYPE "3.3"
#define GPMAPLAYER_AUTHORS "Marc Wathelet (ISTerre, Grenoble, France)"
#define GPMAPLAYER_DISTRIBUTION "3.3.3"
#define GPMAPLAYER_GIT_COMMIT "ec6631ff11f47e88c37437d148f5ddb9ddb43ccc"
#endif // GPMAPLAYER_VERSION
ENDVERSION
replaceFile $BUILD_DIR/gpmaplayer/src gpmaplayerVersion.h
echo "Configure gpmaplayer"
cd "gpmaplayer"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir gpmaplayer -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          gpmaplayer \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/dinvermatlab/src || mkdir -p $BUILD_DIR/dinvermatlab/src
cat <<ENDVERSION > $TEMP_DIR/dinvermatlabVersion.h
#ifndef DINVERMATLAB_VERSION
#define DINVERMATLAB_VERSION "1.0.2"
#define DINVERMATLAB_VERSION_TIME "202006291326"
#define DINVERMATLAB_VERSION_TYPE "3.3"
#define DINVERMATLAB_AUTHORS "Marc Wathelet\nMarc Wathelet (LGIT, Grenoble, France)"
#define DINVERMATLAB_DISTRIBUTION "3.3.3"
#define DINVERMATLAB_GIT_COMMIT "e1f4e695c31d39c3ed5db904d2fc213ca7866536"
#endif // DINVERMATLAB_VERSION
ENDVERSION
replaceFile $BUILD_DIR/dinvermatlab/src dinvermatlabVersion.h
echo "Configure dinvermatlab"
cd "dinvermatlab"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir dinvermatlab -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          dinvermatlab \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/matfiles/src || mkdir -p $BUILD_DIR/matfiles/src
cat <<ENDVERSION > $TEMP_DIR/matfilesVersion.h
#ifndef MATFILES_VERSION
#define MATFILES_VERSION "1.0.2"
#define MATFILES_VERSION_TIME "202006291326"
#define MATFILES_VERSION_TYPE "3.3"
#define MATFILES_AUTHORS "Marc Wathelet (ISTerre, Grenoble, France)\nMarc Wathelet (LGIT, Grenoble, France)"
#define MATFILES_DISTRIBUTION "3.3.3"
#define MATFILES_GIT_COMMIT "6fe821ab81d07b4a6bf1d056e53cd54055e53293"
#endif // MATFILES_VERSION
ENDVERSION
replaceFile $BUILD_DIR/matfiles/src matfilesVersion.h
echo "Configure matfiles"
cd "matfiles"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir matfiles -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          matfiles \\" >> $BUILD_DIR/geopsypack.pro
test -d $BUILD_DIR/GeopsyLand/src || mkdir -p $BUILD_DIR/GeopsyLand/src
cat <<ENDVERSION > $TEMP_DIR/GeopsyLandVersion.h
#ifndef GEOPSYLAND_VERSION
#define GEOPSYLAND_VERSION "1.0.3"
#define GEOPSYLAND_VERSION_TIME "202010061308"
#define GEOPSYLAND_VERSION_TYPE "3.3"
#define GEOPSYLAND_AUTHORS "Marc Wathelet (ISTerre, Grenoble, France)"
#define GEOPSYLAND_DISTRIBUTION "3.3.3"
#define GEOPSYLAND_GIT_COMMIT "fdee98edcabfdf7d81c7d695d0b55e3d599490ae"
#endif // GEOPSYLAND_VERSION
ENDVERSION
replaceFile $BUILD_DIR/GeopsyLand/src GeopsyLandVersion.h
echo "Configure GeopsyLand"
cd "GeopsyLand"
if [ -e configure-3.3 ]; then
  CONFIGURE_SCRIPT=configure-3.3
else
  CONFIGURE_SCRIPT=configure
fi
echo "$SHELL $CONFIGURE_SCRIPT -accept-license -sourcedir $SOURCE_DIR -dest-prefix $BUILD_DIR -builddir $BUILD_DIR -buildsubdir GeopsyLand -skip-qt-check $COMMANDLINE 2>$TEMP_DIR/error.log 1>$TEMP_DIR/info.log" > $TEMP_DIR/configure
if ! $SHELL $TEMP_DIR/configure; then
  cat $TEMP_DIR/error.log
  cat $TEMP_DIR/info.log
  cleanexit 2
else
  cat $TEMP_DIR/error.log
fi
cd ..
# Add project to main pro file
echo "          GeopsyLand \\" >> $BUILD_DIR/geopsypack.pro
# Generate make file
if [ "$BUILD_DIR" = "$SOURCE_DIR" ]; then
  qmake geopsypack.pro
else
  cd $BUILD_DIR
  qmake geopsypack.pro
fi
###############################################################
# Final user message
###############################################################
echo
if [ "$PLATFORM" = "MINGW" ]; then
  CONFIGURE_COMMAND="sh configure"
else
  CONFIGURE_COMMAND="./configure"
fi
echo "  geopsypack is now configured for building."
echo
echo "  To proceed, run (if you have 8 cores)"
echo
if [ "${BUILD_DIR}" != "${SOURCE_DIR}" ]; then
  echo "    $ make -j 8 -C ${BUILD_DIR}"
else
  echo "    $ make -j 8"
fi
echo
echo "  Once everything is built, you must run either"
echo
echo "    $ su -c "make install", if root privileges are needed;"
echo "  or"
echo "    $ make install, if user permissions are sufficient."
echo
echo "  The current configuration options are stored in 'configure.cache'."
echo "  To change the configuration, run '$CONFIGURE_COMMAND [options]'."
echo
cleanexit 0
