summaryrefslogtreecommitdiffstats
path: root/db-unstable
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2003-02-24 01:54:29 +0100
committerJudd Vinet <judd@archlinux.org>2003-02-24 01:54:29 +0100
commitdc73d5af70bbcd1cfa8515e34478c3eb33d15749 (patch)
tree72c9085e86a0c9bf8fd926087647cf374caa230f /db-unstable
parente7b97f41b420767f651912c967898411fcde6b92 (diff)
downloaddbscripts-dc73d5af70bbcd1cfa8515e34478c3eb33d15749.tar.gz
dbscripts-dc73d5af70bbcd1cfa8515e34478c3eb33d15749.tar.xz
added db-unstable script
Diffstat (limited to 'db-unstable')
-rwxr-xr-xdb-unstable19
1 files changed, 19 insertions, 0 deletions
diff --git a/db-unstable b/db-unstable
new file mode 100755
index 0000000..7e3431f
--- /dev/null
+++ b/db-unstable
@@ -0,0 +1,19 @@
+#!/bin/bash
+# $Id: db-unstable,v 1.1 2003/02/24 00:54:29 judd Exp $
+
+echo "==> Generating pacsync2 Database for UNSTABLE..." >&2
+cd /tmp
+CVS_RSH=ssh CVSROOT=:ext:cvs.archlinux.org:/home/cvs-unstable cvs -q export -r CURRENT unstable
+/usr/bin/gensync /tmp/unstable /tmp/unstable.db.tar.gz
+[ -f /tmp/unstable.db.tar.gz ] && mv -f /tmp/unstable.db.tar.gz /home/ftp/unstable
+
+echo "==> Rebuilding HTML Package List..." >&2
+cd /tmp/unstable
+rm -f packages.txt
+$HOME/htmlpkglist unstable
+cp -f pkgs_unstable_name.html /home/sites/archlinux/htdocs/pkglists
+cp -f pkgs_unstable_cat.html /home/sites/archlinux/htdocs/pkglists
+rm pkgs_unstable_name.html pkgs_unstable_cat.html
+
+rm -rf /tmp/unstable
+