File: BuildBz2.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 (25 lines) | stat: -rwxr-xr-x 693 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
#!/bin/bash
#
# Builds MP3 Diags linking Boost libraries statically, if possible, for creation of "generic" binaries
#
# 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

if [ -d bin ] ; then
    rm bin/*
fi

MP3_DIAGS_STATIC=STATIC_SER
. ./Build.sh

Cpu=`uname -m`

NewName=$MP3DiagsExe-Linux-$Cpu-QQQVERQQQ
mv bin/$MP3DiagsExe bin/$NewName
# force gnu format because some not very old tools have trouble understanding the newer pax format
tar -H gnu -c bin | bzip2 > $NewName.tar.bz2
mv $NewName.tar.bz2 bin
mv bin/$NewName bin/$MP3DiagsExe