buildchain 0.4.8

Software for creating and managing a distributed and reproducible chain of builds
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
set -e

export LC=C.UTF-8
export SOURCE_DATE_EPOCH="$(git log -1 --format='%ct')"

rm -rf target/sysroot target/sysroot.tar.xz
mkdir -p target/sysroot
cargo install --root target/sysroot
tar --create --verbose --xz \
    --mtime="@${SOURCE_DATE_EPOCH}" --sort=name \
    --owner=0 --group=0 --numeric-owner \
    --file target/sysroot.tar.xz --directory target/sysroot .