#!/bin/bash -eu
# SPDX-License-Identifier: GPL-3.0-or-later

. sh-functions

cd "$ROOTDIR"

find -P . -type f -execdir touch -c -m --date="1970-01-01 00:00:00 +0000" '{}' '+'

# shellcheck disable=SC2185
find -O2 . -mindepth 1 -print0 |
	sort -z |
	cpio --null --quiet --create --format=newc --reproducible > "$OUTFILE"
