summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2003-01-24 20:27:35 +0100
committerJudd Vinet <judd@archlinux.org>2003-01-24 20:27:35 +0100
commite7b97f41b420767f651912c967898411fcde6b92 (patch)
tree78b80c74b4b8da1c017b1c1590e144c2b2933628
parent9e5739be85cbfa5b8b1acb7543e03e1aed1cd490 (diff)
downloaddbscripts-e7b97f41b420767f651912c967898411fcde6b92.tar.gz
dbscripts-e7b97f41b420767f651912c967898411fcde6b92.tar.xz
Updated to use the /tmp area instead of /usr/abs
-rwxr-xr-xdb-arch12
1 files changed, 6 insertions, 6 deletions
diff --git a/db-arch b/db-arch
index b34ef23..95f5d71 100755
--- a/db-arch
+++ b/db-arch
@@ -1,14 +1,12 @@
#!/bin/bash
-# $Id: db-arch,v 1.3 2002/12/19 19:09:28 judd Exp $
+# $Id: db-arch,v 1.4 2003/01/24 19:27:35 judd Exp $
echo "==> Updating ABS Tree..." >&2
-cd /usr
+cd /tmp
CVSROOT=:ext:judd@cvs.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
+cd /tmp/arch/build
rm -f packages.txt
/root/bin/htmlpkglist arch
mv pkgs_arch_name.html pkgs_arch_cat.html /home/sites/archlinux/htdocs/pkglists
@@ -18,5 +16,7 @@ echo "==> Generating Text Package List..." >&2
mv packages.txt /home/ftp/current/setup/packages.txt
echo "==> Generating pacsync2 Database for ARCH..." >&2
-/usr/bin/gensync /usr/abs /tmp/current.db.tar.gz
+/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