blob: ca451b1a5b0d43c584dfe17e1960133b857ef4df (
plain)
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
|
#!/usr/bin/env bash
# 2018 Luke Shumaker
{
set -euE
COMMIT="${1:-systemd/master}"
workdir=$PWD/workdir
mkdir -p -- "$workdir"
gitget bare https://git.parabola.nu/~lukeshu/systemd.git "$workdir/systemd.git"
./osi-mk \
--size=3G \
--package='base' \
--module=osi-mk.d/libretools.sh \
--module=osi-mk.d/systemd-dhcpcd.sh \
--module=osi-mk.d/systemd-osi-run.sh \
--directory="$workdir/systemd.git:/home/testuser/packages/srcdest/systemd" \
--directory="abs/systemd-232:/home/testuser/packages/abs/systemd-232" \
--directory="abs/systemd:/home/testuser/packages/abs/systemd" \
"${workdir}/build.raw"
./osi-run "${workdir}/build.raw" <<-EOF
#!/usr/bin/env bash
withtty() {
local cmd
printf -v cmd '%q ' "\$@"
script --return --quiet --command "\$cmd" /dev/null
}
set -ex
cd ~/packages/abs/systemd-232
withtty sudo libremakepkg
cd ~/packages/abs/systemd
sed 's/@COMMIT@/${COMMIT}/' < PKGBUILD.in > PKGBUILD
withtty sudo libremakepkg
EOF
}
|