File: Build.sh

package info (click to toggle)
mp3diags 1.5.01-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 21,120 kB
  • sloc: cpp: 34,487; sh: 316; makefile: 101; xml: 97; python: 14
file content (36 lines) | stat: -rwxr-xr-x 678 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
#
# Builds MP3 Diags
#
# Tested on several systems only
# ttt1 Quite likely this needs changes to work with other distros and / or versions
#
# by passing the param "QMAKE_CXX=clang" the project will be compiled with clang

./AdjustMt.sh $MP3_DIAGS_STATIC

QMake=qmake-qt5

# if [ -f /etc/fedora-release ] ; then
#     QMake=qmake-qt4
# fi

if [[ "$1" != "" ]] ; then
    $QMake "$1"
else
    $QMake
fi

if [ $? -ne 0 ] ; then exit 1 ; fi

make
if [ $? -ne 0 ] ; then exit 1 ; fi

./MakeTranslations.sh
cp src/translations/*.qm bin

BranchSlash=`cat branch.txt`
BranchDash=`echo "$BranchSlash" | sed 's#/#-#'`
MP3DiagsExe=MP3Diags$BranchDash

strip bin/$MP3DiagsExe