summaryrefslogtreecommitdiff
blob: b63abfab147b0dc0c684553f018d935f29ead0d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
set -euo pipefail

SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)

: "${TEX_OVERLAY_PATH:=$(portageq get_repo_path / tex-overlay)}"
: "${DISTDIR:="${SCRIPT_DIR}/distdir"}"

if [[ ! -d "${DISTDIR}" ]]; then
	mkdir "${DISTDIR}"
	# https://bford.info/cachedir/
	echo "Signature: 8a477f597d28d172789f06886806bc55" > "${DISTDIR}/CACHEDIR.TAG"
fi
	
export DISTDIR

export USE="doc source"

find "${TEX_OVERLAY_PATH}" -type f -name '*.ebuild' -print0 |\
	xargs --null -I {} ebuild {} fetch