gentoo-asahi-releng/scripts/update_snapshot_tree
Robin H. Johnson 17b064f0b9
update*tree: fix variable.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2016-05-27 14:01:39 -07:00

15 lines
335 B
Bash
Executable file

#!/bin/bash
PORTDIR="/release/trees/portage-snapshot/"
TMPREPO=$(mktemp)
trap "rm -f $TMPREPO" EXIT
cat >$TMPREPO <<EOF
[DEFAULT]
main-repo = gentoo
[gentoo]
location = $PORTDIR
sync-type = rsync
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
EOF
PORTAGE_REPOSITORIES="$(cat $TMPREPO)" FEATURES="$FEATURES -news" emerge --sync -q