File: test-configure

package info (click to toggle)
flatpak-builder 1.0.12-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,580 kB
  • sloc: ansic: 23,288; sh: 5,793; xml: 1,718; makefile: 114; python: 6
file content (22 lines) | stat: -rwxr-xr-x 449 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

if [ x$2 != 'x--some-arg' ] ; then
	exit 2
fi

cat <<EOF > Makefile
all:
	echo Building
	if [ "x\$(CFLAGS)" != "x-O2 -g" ]; then exit 1; fi
	if [ "x\$(FOO)" != xbar ]; then exit 1; fi
	if [ "x\$(BAR)" != x2 ]; then exit 1; fi

install:
	echo Installing
	if [ "x\$(FOO)" != xbar ]; then exit 1; fi
	if [ "x\$(BAR)" != x3 ]; then exit 1; fi
	mkdir -p /app/bin
	cp -a hello2.sh /app/bin/
	mkdir -p /app/share
	cp -a app-data /app/share/
EOF