summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2002-08-21 20:13:14 +0200
committerJudd Vinet <judd@archlinux.org>2002-08-21 20:13:14 +0200
commit8b3ecd497c4f514031e768913a345019bc763899 (patch)
tree206db5c96f9733f61bd9e900e4ea04069057cc6f
parent3a035c17142e854afc355082cd5344821b27235e (diff)
downloaddbscripts-8b3ecd497c4f514031e768913a345019bc763899.tar.gz
dbscripts-8b3ecd497c4f514031e768913a345019bc763899.tar.xz
added new db generation scripts
-rwxr-xr-xdb-arch23
1 files changed, 23 insertions, 0 deletions
diff --git a/db-arch b/db-arch
new file mode 100755
index 0000000..ab2a700
--- /dev/null
+++ b/db-arch
@@ -0,0 +1,23 @@
+#!/bin/bash
+# $Id: db-arch,v 1.1 2002/08/21 18:13:14 judd Exp $
+
+echo "==> Updating ABS Tree..." >&2
+cd /usr
+CVSROOT=:ext:judd@archlinux.org:/home/cvs-arch cvs -q export -r CURRENT -f arch/build
+rm -rf /usr/abs && mv arch/build /usr/abs
+rmdir arch
+
+echo "==> Rebuilding HTML Package List..." >&2
+cd /usr/abs
+rm -f packages.txt
+/root/bin/htmlpkglist
+mv pkgs_name.html pkgs_cat.html /home/httpd/html/
+
+echo "==> Generating pacsync1/setup Database..." >&2
+/root/bin/gensyncdb
+
+cp /home/ftp/current/pacsync/pacsync.db /home/ftp/current/setup/packages.txt
+
+echo "==> Generating pacsync2 Database for ARCH..." >&2
+/usr/bin/gensync /usr/abs /tmp/current.db.tar.gz
+[ -f /tmp/current.db.tar.gz ] && mv -f /tmp/current.db.tar.gz /home/ftp/current