File: testbuild

package info (click to toggle)
pd-flext 0.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,960 kB
  • sloc: cpp: 12,978; makefile: 223; sh: 149
file content (29 lines) | stat: -rwxr-xr-x 785 bytes parent folder | download | duplicates (2)
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
#!/bin/sh
set -e
scriptdir=${0%/*}
: ${PD:=/usr/bin/pd}

for t in "${@}"; do
	echo "================= building ${t} ===================="
	make -C "${t}" -f /usr/share/pd-flext/dev/Makefile.flext 2>&1

	patch=${t%/}
	patch="${scriptdir}/${patch##*/}.pd"
	if [ -n "${DEB_HOST_GNU_TYPE:-}" ]; then
		echo "cross-build detected: skip running ${t}"
		continue
	fi
	if [ ! -x "${PD}" ]; then
		echo "no runnable Pd found (${PD}): skip running ${t}"
		continue
	fi
	if [ ! -f "${patch}" ]; then
		echo "no test patch ${patch} found: skip running ${t}"
		continue
	fi

	echo "----------------- running ${t} ---------------------"
	"${PD}" -noprefs -verbose -nosound -nrt -nogui -send "pd quit 2" -path "${t}" "${patch}" 2>&1
	echo "----------------- run with ${PD} done --------------"
done