osi-tools/runtests

29 lines
815 B
Plaintext
Raw Normal View History

2018-08-06 00:09:42 +00:00
#!/usr/bin/env bash
2018-08-06 01:49:45 +00:00
# 2018 Luke Shumaker
2018-08-06 00:09:42 +00:00
{
set -euE
COMMIT="${1:-systemd/master}"
workdir=$PWD/workdir
mkdir -p -- "$workdir"
gitget bare https://git.parabola.nu/~lukeshu/systemd.git "$workdir/systemd.git"
./mkosi \
2018-08-06 01:49:45 +00:00
--package='base' \
2018-08-06 00:09:42 +00:00
--module=mkosi.d/systemd-libretools.sh \
--module=mkosi.d/systemd-runscript.sh \
2018-08-06 01:49:45 +00:00
--directory="$workdir/systemd.git:/home/runscript/packages/srcdest/systemd" \
--directory="abs/systemd-232:/home/runscript/packages/abs/systemd-232" \
--directory="abs/systemd:/home/runscript/packages/abs/systemd" \
2018-08-06 00:09:42 +00:00
"${workdir}/build.raw"
./runscript "${workdir}/build.raw" <<-EOF
#!/usr/bin/env bash
set -ex
cd ~/packages/abs/systemd-232
sudo libremakepkg
cd ~/packages/abs/systemd
sed 's/@COMMIT@/${COMMIT}/' < PKGBUILD.in > PKGBUILD
sudo libremakepkg
EOF
}