summaryrefslogtreecommitdiffstats
path: root/db-arch
blob: a6b911859c21d2a84b6c4f2d536be60d31bdad26 (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.7 2003/05/24 00:25:59 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

cd /tmp/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