blob: 451a7bac79b3f210270bf79395a2dd6f5a4cdb47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
# This populates the cache for GLSAMaker to fetch data about packages, and is only meant for running on production.
DESTDIR=/var/cache/glsamaker-portage/
SYNC='rsync://rsync.gentoo.org/gentoo-portage'
RSYNC='/usr/bin/rsync'
OPTIONS="-aq --delete-after"
OPTIONS+=" --include=*/*/metadata.xml"
OPTIONS+=" --include=metadata/*/* --include=metadata/*/*/*"
OPTIONS+=" --exclude=licenses/ --exclude=eclass/ --exclude=packages/"
OPTIONS+=" --exclude=skel.* --exclude=distfiles/ --exclude=profiles/"
OPTIONS+=" --exclude=header.txt"
OPTIONS+=" --exclude=*/*/*"
"${RSYNC}" ${OPTIONS} "${SYNC}" "${DESTDIR}"
|