aboutsummaryrefslogtreecommitdiff
path: root/scripts/update_repo.sh
blob: 2b0dbe24af82af54e6f1acf91a4eb5d34b276c67 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

test -f /etc/aurbuilder/config && source /etc/aurbuilder/config

OUTPUT=${OUTPUT:-/srv/pkg/}
REPONAME=${REPONAME:-repo}

repo-add -p -R "$OUTPUT/$REPONAME.db.tar.gz" "$OUTPUT/"*.pkg.* || exit 1
rm -f "$OUTDIR/"*.old