summaryrefslogtreecommitdiff
path: root/db-arch
blob: c6a7339b4c1c269f0ff3c10567ffc99a4102b47c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# $Id: db-arch,v 1.5 2003/05/21 23:07:33 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

echo "==> Rebuilding HTML Package List..." >&2
cd /tmp/arch/build
rm -f packages.txt
/arch/htmlpkglist arch
mv pkgs_arch_name.html pkgs_arch_cat.html /home/sites/archlinux/htdocs/pkglists
/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