"Fossies" - the Fresh Open Source Software Archive

Member "MP3Diags-unstable-1.5.01/Build.sh" (6 Apr 2019, 678 Bytes) of package /linux/privat/MP3Diags-unstable-1.5.01.tar.gz:


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 latest Fossies "Diffs" side-by-side code changes report for "Build.sh": 1.3.04_vs_1.5.01.

    1 #!/bin/bash
    2 #
    3 # Builds MP3 Diags
    4 #
    5 # Tested on several systems only
    6 # ttt1 Quite likely this needs changes to work with other distros and / or versions
    7 #
    8 # by passing the param "QMAKE_CXX=clang" the project will be compiled with clang
    9 
   10 ./AdjustMt.sh $MP3_DIAGS_STATIC
   11 
   12 QMake=qmake-qt5
   13 
   14 # if [ -f /etc/fedora-release ] ; then
   15 #     QMake=qmake-qt4
   16 # fi
   17 
   18 if [[ "$1" != "" ]] ; then
   19     $QMake "$1"
   20 else
   21     $QMake
   22 fi
   23 
   24 if [ $? -ne 0 ] ; then exit 1 ; fi
   25 
   26 make
   27 if [ $? -ne 0 ] ; then exit 1 ; fi
   28 
   29 ./MakeTranslations.sh
   30 cp src/translations/*.qm bin
   31 
   32 BranchSlash=`cat branch.txt`
   33 BranchDash=`echo "$BranchSlash" | sed 's#/#-#'`
   34 MP3DiagsExe=MP3Diags$BranchDash
   35 
   36 strip bin/$MP3DiagsExe