From b0cad2e07184de37e2c52eaa440e55eae6657cc1 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Mon, 15 Sep 2014 14:35:01 +0200 Subject: [PATCH] Moved doxygen related files to Documentation/ and removed old script files. The setup and corresponding scripts in base are not up-to-date since some time. Use the devguide guide instead: http://docs.opengeosys.org/docs/devguide --- {scripts/docs => Documentation}/Doxyfile.in | 0 .../docs => Documentation}/DoxygenLayout.xml | 0 .../OpenGeoSys-Logo.png | Bin {scripts/docs => Documentation}/mainpage.dox | 0 scripts/base/architecture_option_win.sh | 12 -- .../base/check_and_cleanup_build_directory.sh | 10 - scripts/base/check_architecture_option_win.sh | 7 - scripts/base/configure_compiler.sh | 11 - scripts/base/configure_win_vs.sh | 41 ---- scripts/base/download_file_with_cmake.sh | 13 -- scripts/cmake/DocumentationSetup.cmake | 2 +- scripts/init.sh | 45 ---- scripts/pack/.DS_Store | Bin 15364 -> 0 bytes scripts/setup/README.md | 19 -- scripts/setup/setup.sh | 47 ----- scripts/setup/setup_libraries.sh | 195 ------------------ scripts/setup/setup_prerequisites.sh | 50 ----- 17 files changed, 1 insertion(+), 451 deletions(-) rename {scripts/docs => Documentation}/Doxyfile.in (100%) rename {scripts/docs => Documentation}/DoxygenLayout.xml (100%) rename {scripts/docs => Documentation}/OpenGeoSys-Logo.png (100%) rename {scripts/docs => Documentation}/mainpage.dox (100%) delete mode 100644 scripts/base/architecture_option_win.sh delete mode 100644 scripts/base/check_and_cleanup_build_directory.sh delete mode 100644 scripts/base/check_architecture_option_win.sh delete mode 100644 scripts/base/configure_compiler.sh delete mode 100644 scripts/base/configure_win_vs.sh delete mode 100644 scripts/base/download_file_with_cmake.sh delete mode 100644 scripts/init.sh delete mode 100644 scripts/pack/.DS_Store delete mode 100644 scripts/setup/README.md delete mode 100644 scripts/setup/setup.sh delete mode 100644 scripts/setup/setup_libraries.sh delete mode 100644 scripts/setup/setup_prerequisites.sh diff --git a/scripts/docs/Doxyfile.in b/Documentation/Doxyfile.in similarity index 100% rename from scripts/docs/Doxyfile.in rename to Documentation/Doxyfile.in diff --git a/scripts/docs/DoxygenLayout.xml b/Documentation/DoxygenLayout.xml similarity index 100% rename from scripts/docs/DoxygenLayout.xml rename to Documentation/DoxygenLayout.xml diff --git a/scripts/docs/OpenGeoSys-Logo.png b/Documentation/OpenGeoSys-Logo.png similarity index 100% rename from scripts/docs/OpenGeoSys-Logo.png rename to Documentation/OpenGeoSys-Logo.png diff --git a/scripts/docs/mainpage.dox b/Documentation/mainpage.dox similarity index 100% rename from scripts/docs/mainpage.dox rename to Documentation/mainpage.dox diff --git a/scripts/base/architecture_option_win.sh b/scripts/base/architecture_option_win.sh deleted file mode 100644 index 79cf6f902b2..00000000000 --- a/scripts/base/architecture_option_win.sh +++ /dev/null @@ -1,12 +0,0 @@ -if [ "$OPTARG" == "x32" ]; then - ARCHITECTURE="x32" - WIN_ARCHITECTURE="x86" - BITS="32" -elif [ "$OPTARG" == "x64" ]; then - ARCHITECTURE="x64" - WIN_ARCHITECTURE="x64" - BITS="64" -else - echo "$OPTARG is not a valid argument. Specify x32 or x64." - exit 1 -fi \ No newline at end of file diff --git a/scripts/base/check_and_cleanup_build_directory.sh b/scripts/base/check_and_cleanup_build_directory.sh deleted file mode 100644 index 6c98ec25396..00000000000 --- a/scripts/base/check_and_cleanup_build_directory.sh +++ /dev/null @@ -1,10 +0,0 @@ -if [ -z $BUILD_LOCATION ]; then - echo "You must specify a build directory (relative to the source directory)." - echo "Aborting..." - echo "Usage: $0 -d /build/directory" - exit 1 -fi - -# Cleanup -rm -rf $BUILD_LOCATION -mkdir -p $BUILD_LOCATION && cd $BUILD_LOCATION \ No newline at end of file diff --git a/scripts/base/check_architecture_option_win.sh b/scripts/base/check_architecture_option_win.sh deleted file mode 100644 index 8464fb5da53..00000000000 --- a/scripts/base/check_architecture_option_win.sh +++ /dev/null @@ -1,7 +0,0 @@ -if [ "$OSTYPE" == 'msys' ]; then - if [ "$ARCHITECTURE" != "x32" -a "$ARCHITECTURE" != "x64" ]; then - echo "You did not pass the cpu architecture as a script parameter. Aborting..." - echo "Usage: $0 -a [x32|x64]" - exit 1 - fi -fi \ No newline at end of file diff --git a/scripts/base/configure_compiler.sh b/scripts/base/configure_compiler.sh deleted file mode 100644 index 2454db71f8d..00000000000 --- a/scripts/base/configure_compiler.sh +++ /dev/null @@ -1,11 +0,0 @@ -NUM_PROCESSORS="" -if [ "$OSTYPE" == 'msys' ]; then - source $SOURCE_LOCATION/scripts/base/configure_win_vs.sh -else - CMAKE_GENERATOR="Unix Makefiles" - if [[ "$OSTYPE" == darwin* ]]; then - NUM_PROCESSORS=`sysctl hw.ncpu | awk '{print $2}'` - else - NUM_PROCESSORS=`cat /proc/cpuinfo | grep processor | wc -l` - fi -fi \ No newline at end of file diff --git a/scripts/base/configure_win_vs.sh b/scripts/base/configure_win_vs.sh deleted file mode 100644 index e3b1d20152e..00000000000 --- a/scripts/base/configure_win_vs.sh +++ /dev/null @@ -1,41 +0,0 @@ -# Check Visual Studio version and setup CMake generator -if [ -z "$VS110COMNTOOLS" ]; then - if [ -z "$VS100COMNTOOLS" ]; then - if [ -z "$VS90COMNTOOLS" ]; then - if [ -z "$VS80COMNTOOLS" ]; then - echo "Error: Visual Studio not found" - exit 1 - else - WIN_DEVENV_PATH="$VS80COMNTOOLS..\\IDE" - CMAKE_GENERATOR="Visual Studio 8 2005" - fi - else - WIN_DEVENV_PATH="$VS90COMNTOOLS..\\IDE" - CMAKE_GENERATOR="Visual Studio 9 2008" - fi - else - WIN_DEVENV_PATH="$VS100COMNTOOLS..\\IDE\\" - CMAKE_GENERATOR="Visual Studio 10" - fi -else - WIN_DEVENV_PATH="$VS110COMNTOOLS..\\IDE\\" - CMAKE_GENERATOR="Visual Studio 11" - if [ "$ARCHITECTURE" == "x64" ]; then - WIN_ARCHITECTURE="x86_amd64" - fi -fi - -if [ "$ARCHITECTURE" == "x64" ]; then - CMAKE_GENERATOR="$CMAKE_GENERATOR Win64" -fi - -DEVENV_EXE="${WIN_DEVENV_PATH}devenv" - -# Replace backslashes in WIN_DEVENV_PATH -DEVENV_PATH=$(echo "$WIN_DEVENV_PATH" | awk '{ gsub(/\\/, "/"); print }') -DEVENV_PATH=$(echo "$DEVENV_PATH" | awk '{ gsub(/C:\//, "/c/"); print }') - -echo "Visual Studio found: $DEVENV_PATH" -echo "Devenv: $DEVENV_EXE" -echo "CMake Generator: $CMAKE_GENERATOR" -export PATH=$PATH:$DEVENV_PATH \ No newline at end of file diff --git a/scripts/base/download_file_with_cmake.sh b/scripts/base/download_file_with_cmake.sh deleted file mode 100644 index abd9ae41f9d..00000000000 --- a/scripts/base/download_file_with_cmake.sh +++ /dev/null @@ -1,13 +0,0 @@ -# Argument 1: Download URL (SSL is not working) -# Argument 2: Destination path -# Argument 3: MD5-Hash (Optional) -download_file() { - if [ "$#" -eq "2" ]; then - echo "file (DOWNLOAD \"$1\" \"$2\" SHOW_PROGRESS)" > download_file.cmake - elif [ "$#" -eq "3" ]; then - echo "file (DOWNLOAD \"$1\" \"$2\" EXPECTED_MD5 \"$3\" SHOW_PROGRESS)" > download_file.cmake - fi - echo "Downloading file $1 ..." - cmake -P download_file.cmake - rm download_file.cmake -} \ No newline at end of file diff --git a/scripts/cmake/DocumentationSetup.cmake b/scripts/cmake/DocumentationSetup.cmake index 612585f7b4e..5d0210bd461 100644 --- a/scripts/cmake/DocumentationSetup.cmake +++ b/scripts/cmake/DocumentationSetup.cmake @@ -24,6 +24,6 @@ IF(DOXYGEN_FOUND) COMMENT "Generating docset ...") ENDIF() # DOCS_GENERATE_DOCSET - CONFIGURE_FILE(scripts/docs/Doxyfile.in ${PROJECT_BINARY_DIR}/Doxyfile) + CONFIGURE_FILE(Documentation/Doxyfile.in ${PROJECT_BINARY_DIR}/Doxyfile) ENDIF() # DOXYGEN_FOUND diff --git a/scripts/init.sh b/scripts/init.sh deleted file mode 100644 index 08398dbc16b..00000000000 --- a/scripts/init.sh +++ /dev/null @@ -1,45 +0,0 @@ -# Get script directory -SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -DIR=$SCRIPT_DIR/.. -source $SCRIPT_DIR/base/download_file_with_cmake.sh - -### Init git hooks ### - -# Check for uncrustify -UNCRUSTIFY_LOCATION=`which uncrustify` -if [ -z "$UNCRUSTIFY_LOCATION" ]; then - if [ "$OSTYPE" == 'msys' ]; then - mkdir -vp ~/bin - export PATH=$PATH:~/bin - download_file http://sourceforge.net/projects/uncrustify/files/uncrustify/uncrustify-0.59/uncrustify-0.59-win32.zip/download ./uncrustify-0.59-win32.zip - 7za x uncrustify-0.59-win32.zip - mv uncrustify-0.59-win32/uncrustify.exe ~/bin - rm -r uncrustify-0.59-win32* - if [ ! -f ~/bin/uncrustify.exe ]; then - echo "Error downloading uncrustify! Git hooks not set." - else - UNCRUSTIFY_LOCATION=~/bin/uncrustify.exe - fi - else - echo "Please install uncrustify (http://uncrustify.sourceforge.net) to setup git hooks." - exit 1 - fi -fi - -cd $DIR -# Enable git hooks -# Does not work on Windows at the moment -if [ ! "$OSTYPE" == 'msys' ]; then - cd .git/hooks - git init - cd ../.. - git fetch origin - cd .git/hooks - git pull .. remotes/origin/hooks - cd $DIR - - # Set git configs for running uncrustify - git config --add --bool hooks.uncrustify true - git config hooks.uncrustify.path $UNCRUSTIFY_LOCATION - git config hooks.uncrustify.conf $SCRIPT_DIR/style/uncrustify.cfg -fi diff --git a/scripts/pack/.DS_Store b/scripts/pack/.DS_Store deleted file mode 100644 index 7cdff080b1c759a2443b48ceab98f54d549c9772..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15364 zcmeHMU2I%O6+W}Eo!!Jg>z}4>Y04s3BG9aT_s9DaQ@mcU9a|`J=$iaANu7K5UawbP z?_GAU<CHXDS{_=U5=A^jLP9*CDguNmgb)uDS*Sv&3Q2`{=tC-`N+2pB5ebms1^CXr zbJy!N0$QO8l{wPfb7tnuIdi_5Id|?Z5sCb!86%1iQ4ocBxE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`d`M)uDf8Vn0 zmJIv8%+m*yZXS%_s2xYiNd7%;M@$*hm`s*p*_am3W)kUaER!%ZMrw7^(o4EoO2j5p znzd>et(D&|xciCC(fE~OqgJ)uTO&K~r5Pm6I#qE|DB)V*fZMnjG#9IONq+KRg5u-Q zeV*vEzu^}==wDv$I>zomKZCKqm17ULE+}PO3M;sr=sbtLqi{7O`U27Pr{ySA6)6PX zI|O9fi16?Kb2z5_-ch6wPzd~gAt1U6#X=r2%e%(D==t6eLAi{=#CqEvcZcBNUQNLH zz0VcCpB`fwZ5neX$T`WkJ&qR8d;Vv@JGm>W?|=3Ek1dLw`hNTVch8=BC<GJ&3IT<H iLO>y)5Kssx1QY@a0fm4<Kp~(IPzWdl6aw!*1pWc$!0ToJ diff --git a/scripts/setup/README.md b/scripts/setup/README.md deleted file mode 100644 index 405e4e9ed77..00000000000 --- a/scripts/setup/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# Setup scripts for Windows # - -## setup.sh ## - -If you are on Windows you can run `setup.sh` on the *Git Bash* to setup all required third party libraries for OGS (including the Data Explorer). Make also sure you have working Internet connection. For more details have a look on the [devguide][dev]. - -The following options are available: - -- `-a [x32|x64]` to build for either 32- or 64-bits -- `-s` to build Qt with Oracle SQL bindings - -A typical call would look like this: - - cd /scripts/setup - ./setup.sh -a x64 -d - -The compilation of the libraries will take some time. Make sure to set the Qt environment variables as described in the [devguide][dev]. - -[dev]: (http://ufz.github.com/devguide/win-prerequisites/). \ No newline at end of file diff --git a/scripts/setup/setup.sh b/scripts/setup/setup.sh deleted file mode 100644 index be89d383386..00000000000 --- a/scripts/setup/setup.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -# Parse options -while getopts ":a:d:s" opt; do - case $opt in - a) - if [ "$OPTARG" == "x32" ]; then - ARCHITECTURE="x32" - WIN_ARCHITECTURE="x86" - elif [ "$OPTARG" == "x64" ]; then - ARCHITECTURE="x64" - WIN_ARCHITECTURE="x64" - else - echo "$OPTARG is not a valid argument. Specify x32 or x64." - exit 1 - fi - ;; - \?) - echo "Invalid option: -$OPTARG" - exit 1 - ;; - :) - echo "Option -$OPTARG requires an argument." - exit 1 - ;; - s) - echo "Qt SQL bindings enabled." - QT_SQL=true - ;; - esac -done - -SOURCE_LOCATION=`pwd` -SOURCE_LOCATION="$SOURCE_LOCATION/../.." - -source setup_prerequisites.sh - -source setup_libraries.sh - -# source setup_builds.sh - -if [ $QT_WAS_BUILT ]; then - echo "Important note: Make sure to add the Qt environment variables!" - if [ $QT_SQL ]; then - echo "Important note: Make sure to add the instantclient directory to the PATH!" - fi -fi \ No newline at end of file diff --git a/scripts/setup/setup_libraries.sh b/scripts/setup/setup_libraries.sh deleted file mode 100644 index 0e030480c8e..00000000000 --- a/scripts/setup/setup_libraries.sh +++ /dev/null @@ -1,195 +0,0 @@ -#!/usr/bin/env bash - -LIBS_LOCATION="$SOURCE_LOCATION/../libs" - -mkdir -vp $LIBS_LOCATION -cd $LIBS_LOCATION -mkdir -vp include -mkdir -vp lib - -QMAKE_LOCATION=`which qmake` - -QT_VERSION="qt-everywhere-opensource-src-4.8.3" -VTK_VERSION="vtk-5.10.0" -SHAPELIB_VERSION="shapelib-1.3.0" -LIBGEOTIFF_VERSION="libgeotiff-1.3.0" -INSTANTCLIENT_VERSION="instantclient_11_2" -METIS_VERSION="metis-5.0.2" -BOOST_VERSION="1.53.0" -BOOST_VERSION_UNDERSCORE=${BOOST_VERSION//./_} - -## Windows specific -if [ "$OSTYPE" == 'msys' ]; then - if [ -z "$QMAKE_LOCATION" ]; then - # Install Qt - if [ ! -d qt ]; then - # Download and extract - download_file http://releases.qt-project.org/qt4/source/$QT_VERSION.zip ./$QT_VERSION.zip - 7za x $QT_VERSION.zip - mv $QT_VERSION/ qt/ - rm $QT_VERSION.zip - - elif [ -f qt/bin/qmake.exe -a -f qt/bin/QtGui4.dll -a -f qt/bin/QtGuid4.dll ]; then - # Already installed - QT_FOUND=true - fi - - if [ $QT_FOUND ]; then - echo "Qt already installed in $LIBS_LOCATION/qt" - else - # Compile - QT_CONFIGURATION="-debug-and-release" - - # Get instantclient - QT_SQL_ARGS="" - if [ $QT_SQL ]; then - if [ ! -d instantclient ]; then - if [ "$ARCHITECTURE" == "x64" ]; then - download_file http://dl.dropbox.com/u/5581063/instantclient_11_2_x64.zip ./instantclient_11_2_x64.zip 015bd1b163571988cacf70e7d6185cb5 - 7za x instantclient_11_2_x64.zip - mv instantclient_11_2/ instantclient/ - rm instantclient_11_2_x64.zip - fi - fi - QT_SQL_ARGS="-qt-sql-oci -I %cd%\..\instantclient\sdk\include -L %cd%\..\instantclient\sdk\lib\msvc" - fi - - cd qt - - echo " \ - \"$WIN_DEVENV_PATH\\..\\..\\VC\\vcvarsall.bat\" $WIN_ARCHITECTURE &&\ - echo y | configure -opensource -no-accessibility -no-dsp -no-vcproj -no-phonon -no-webkit -no-scripttools -nomake demos -nomake examples $QT_CONFIGURATION $QT_SQL_ARGS &&\ - jom && nmake clean &&\ - exit\ - " > build.bat - - $COMSPEC //k build.bat - QT_WAS_BUILT=true - fi - - export PATH=$PATH:$LIBS_LOCATION/qt/bin - - else - echo "Qt already installed in $QMAKE_LOCATION" - fi - - - # Install VTK - cd $LIBS_LOCATION - if [ ! -d vtk ]; then - # Download, extract, rename - download_file http://www.vtk.org/files/release/5.10/$VTK_VERSION.tar.gz ./$VTK_VERSION.tar.gz - tar -xf $VTK_VERSION.tar.gz - rm $VTK_VERSION.tar.gz - # Check for existing installation - elif [ -f vtk/build/bin/Release/QVTK.lib -a -f vtk/build/bin/Release/vtkRendering.lib ]; then - if [ $LIB_DEBUG ]; then - if [ -f vtk/build/bin/Debug/QVTK.lib -a -f vtk/build/bin/Debug/vtkRendering.lib ]; then - VTK_FOUND=true - fi - else - VTK_FOUND=true - fi - fi - - if [ $VTK_FOUND ]; then - echo "VTK already installed in $LIBS_LOCATION/vtk" - else - # Compile - cd vtk - mkdir -vp build - cd build - cmake .. -DBUILD_TESTING=OFF -DVTK_USE_QT=ON -G "$CMAKE_GENERATOR" - cmake .. - cmake --build . --config Release - cmake --build . --config Release --target QVTK - cmake --build . --config Debug - cmake --build . --config Debug --target QVTK - fi - - # Install libgeotiff - cd $LIBS_LOCATION - if [ ! -d libgeotiff ]; then - # Download, extract - download_file http://download.osgeo.org/geotiff/libgeotiff/$LIBGEOTIFF_VERSION.tar.gz ./$LIBGEOTIFF_VERSION.tar.gz - tar -xf $LIBGEOTIFF_VERSION.tar.gz - mv $LIBGEOTIFF_VERSION/ libgeotiff/ - rm -rf $LIBGEOTIFF_VERSION.tar.gz - elif [ -f libgeotiff/geotiff.lib ]; then - LIBGEOTIFF_FOUND=true - fi - - if [ $LIBGEOTIFF_FOUND ]; then - echo "Libgeotiff already installed in $LIBS_LOCATION/libgeotiff" - else - # Compile - cd libgeotiff - - # Download modified makefile - if [ ! -f makefile_mod.vc ]; then - download_file http://dl.dropbox.com/u/5581063/makefile_mod.vc ./makefile_mod.vc 14fb13a5bd04ffc298fee7825dc7679f - fi - - echo " \ - \"$WIN_DEVENV_PATH\\..\\..\\VC\\vcvarsall.bat\" $WIN_ARCHITECTURE &&\ - nmake /f makefile_mod.vc all&&\ - exit\ - " > build.bat - - $COMSPEC //k build.bat - fi - - # Install Metis - cd $LIBS_LOCATION - if [ ! -d metis ]; then - # Download, extract, rename - download_file http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/$METIS_VERSION.tar.gz ./$METIS_VERSION.tar.gz - tar -xf $METIS_VERSION.tar.gz - mv $METIS_VERSION/ metis/ - rm $METIS_VERSION.tar.gz - # Check for existing installation - elif [ -f metis/build/windows/libmetis/Release/metis.lib ]; then - METIS_FOUND=true - fi - - if [ $METIS_FOUND ]; then - echo "Metis already installed in $LIBS_LOCATION/metis" - else - # Compile - cd metis - $COMSPEC //c "vsgen.bat -G \"$CMAKE_GENERATOR\"" - cd build/windows - cmake --build . --config Release - cd ../.. - cp build/windows/libmetis/Release/metis.lib ../lib/metis.lib - cp include/metis.h ../include/metis.h - fi - - # Install Boost - cd $LIBS_LOCATION - if [ ! -d boost ]; then - # Download, extract, rename - download_file http://sourceforge.net/projects/boost/files/boost/$BOOST_VERSION/boost_$BOOST_VERSION_UNDERSCORE.zip/download ./boost_$BOOST_VERSION_UNDERSCORE.zip - 7za x boost_$BOOST_VERSION_UNDERSCORE.zip - mv boost_$BOOST_VERSION_UNDERSCORE/ boost/ - rm boost_$BOOST_VERSION_UNDERSCORE.zip - elif [ -d boost/stage/lib ]; then - BOOST_FOUND=true - fi - - if [ $BOOST_FOUND ]; then - echo "Boost is already installed in ..." - else - # Compile - cd boost - echo " \ - \"$WIN_DEVENV_PATH\\..\\..\\VC\\vcvarsall.bat\" $WIN_ARCHITECTURE &&\ - bootstrap.bat &&\ - bjam.exe address-model=$BITS &&\ - exit\ - " > build.bat - $COMSPEC //k build.bat - fi -fi - -cd $SOURCE_LOCATION/scripts/setup diff --git a/scripts/setup/setup_prerequisites.sh b/scripts/setup/setup_prerequisites.sh deleted file mode 100644 index 5149883346d..00000000000 --- a/scripts/setup/setup_prerequisites.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -# Check for prerequisites -CMAKE_LOCATION=`which cmake` -if [ -z "$CMAKE_LOCATION" ]; then - echo "CMake not found! Aborting..." - exit 1 -fi - -source $SOURCE_LOCATION/scripts/base/download_file_with_cmake.sh -source $SOURCE_LOCATION/scripts/base/configure_compiler.sh - -## Windows specific -if [ "$OSTYPE" == 'msys' ]; then - - mkdir -vp ~/bin - export PATH=$PATH:~/bin - - # 7-zip - SEVENZIP_LOCATION=`which 7za` - if [ ! -z "$SEVENZIP_LOCATION" ]; then - echo "7-zip found." - else - cd ~/bin - download_file http://dl.dropbox.com/u/5581063/7za.exe ./7za.exe e92604e043f51c604b6d1ac3bcd3a202 - fi - SEVENZIP_LOCATION=`which 7za` - if [ -z "$SEVENZIP_LOCATION" ]; then - echo "7-zip not downloaded! Aborting..." - exit 1 - fi - - # jom - JOM_LOCATION=`which jom` - if [ ! -z "$JOM_LOCATION" ]; then - echo "jom found." - else - cd ~/bin - download_file http://dl.dropbox.com/u/5581063/jom.exe ./jom.exe 335428f223d36f0a39faaa845222346d - fi - JOM_LOCATION=`which jom` - if [ -z "$JOM_LOCATION" ]; then - echo "jom not downloaded! Aborting..." - exit 1 - fi - -fi - - -cd "$SOURCE_LOCATION/scripts/setup" \ No newline at end of file -- GitLab