blob: 3f3e85ad05dca6b6966c7705920aaaba03c313e4 (
plain)
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
|