summaryrefslogtreecommitdiffstats
path: root/db-arch
blob: 510637d08c84743b1853b9f2606bf5c5b7a63a94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# $Id: db-arch,v 1.6 2003/05/23 05:08:57 judd Exp $

echo "==> Updating ABS Tree..." >&2
cd /tmp
rm -rf arch
CVSROOT=:ext:judd@cvs.archlinux.org:/home/cvs-arch cvs -q export -r CURRENT -f arch/build

/arch/pkgdb 1

echo "==> Generating Text Package List..." >&2
/arch/genpkglist
mv packages.txt /home/ftp/current/setup/packages.txt

echo "==> Generating pacsync2 Database for ARCH..." >&2
/usr/bin/gensync /tmp/arch/build /tmp/current.db.tar.gz
[ -f /tmp/current.db.tar.gz ] && mv -f /tmp/current.db.tar.gz /home/ftp/current

rm -rf /tmp/arch