"Fossies" - the Fresh Open Source Software Archive

Member "src/Build/build_veracrypt_freebsd.sh" (10 Oct 2018, 1669 Bytes) of package /windows/misc/VeraCrypt_1.23-Hotfix-2_Source.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "build_veracrypt_freebsd.sh": 1.21_Source_vs_1.22_Source.

    1 #!/bin/sh
    2 #
    3 # Copyright (c) 2013-2016 IDRIX
    4 # Governed by the Apache License 2.0 the full text of which is contained
    5 # in the file License.txt included in VeraCrypt binary and source
    6 # code distribution packages.
    7 #
    8 
    9 # Absolute path to this script
   10 SCRIPT=$(readlink -f "$0")
   11 # Absolute path this script is in
   12 SCRIPTPATH=$(dirname "$SCRIPT")
   13 # source directory which contains the Makefile
   14 SOURCEPATH=$(readlink -f "$SCRIPTPATH/..")
   15 # directory where the VeraCrypt has been checked out
   16 PARENTDIR=$(readlink -f "$SCRIPTPATH/../../..")
   17 
   18 # Make sure only root can run our script
   19 if [ "$(id -u)" != "0" ]; then
   20    echo "VeraCrypt must be built by root" 1>&2
   21    exit 1
   22 fi
   23 
   24 # the sources of wxWidgets 3.0.3 must be extracted to the parent directory
   25 export WX_ROOT=$PARENTDIR/wxWidgets-3.0.4
   26 echo "Using wxWidgets sources in $WX_ROOT"
   27 
   28 cd $SOURCEPATH
   29 
   30 echo "Building GUI version of VeraCrypt"
   31 
   32 # this will be the temporary wxWidgets directory
   33 export WX_BUILD_DIR=$PARENTDIR/wxBuildGui
   34 
   35 gmake WXSTATIC=1 wxbuild && gmake WXSTATIC=1 clean && gmake WXSTATIC=1 && gmake WXSTATIC=1 package
   36 
   37 # Uncomment below and comment line above to reuse existing wxWidgets build
   38 #gmake WXSTATIC=1 clean && gmake WXSTATIC=1 && gmake WXSTATIC=1 package
   39 
   40 echo "Building console version of VeraCrypt"
   41 
   42 # this will be the temporary wxWidgets directory
   43 export WX_BUILD_DIR=$PARENTDIR/wxBuildConsole
   44 
   45 gmake WXSTATIC=1 NOGUI=1 wxbuild && gmake WXSTATIC=1 NOGUI=1 clean && gmake WXSTATIC=1 NOGUI=1 && gmake WXSTATIC=1 NOGUI=1 package
   46 
   47 # Uncomment below and comment line above to reuse existing wxWidgets build
   48 #gmake WXSTATIC=1 NOGUI=1 clean && gmake WXSTATIC=1 NOGUI=1 && gmake WXSTATIC=1 NOGUI=1 package