summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2008-12-11 16:09:21 +0100
committerLoui Chang <louipc.ist@gmail.com>2008-12-11 16:20:59 +0100
commit084b11a6f2e1575cd7c84dee194d0ab66e2087a4 (patch)
tree74a7129f62ae108fc45a4f2849a2669f53d4dcab
parent5b47a29d2b0665f41ddd2e045ef926e8b3aa2368 (diff)
downloadaur-084b11a6f2e1575cd7c84dee194d0ab66e2087a4.tar.gz
aur-084b11a6f2e1575cd7c84dee194d0ab66e2087a4.tar.xz
Update usage and paths in tupkg run scripts.
In run-tupkgupdate: Set HOME for correct CVS auth. Properly filter out unneeded messages from CVS output, and prune empty directories on update. Signed-off-by: Loui Chang <louipc.ist@gmail.com>
-rwxr-xr-xsupport/scripts/run-tupkgs2
-rwxr-xr-xsupport/scripts/run-tupkgupdate12
2 files changed, 8 insertions, 6 deletions
diff --git a/support/scripts/run-tupkgs b/support/scripts/run-tupkgs
index 72fb11de..429f815a 100755
--- a/support/scripts/run-tupkgs
+++ b/support/scripts/run-tupkgs
@@ -1,4 +1,4 @@
#!/bin/bash
-aurroot=/srv/sites/http/aur
+aurroot=/srv/http/aur
nohup $aurroot/aur/tupkg/server/tupkgs -c $aurroot/tupkgs.conf > $aurroot/tupkgs.log 2>&1 &
diff --git a/support/scripts/run-tupkgupdate b/support/scripts/run-tupkgupdate
index 01575dc6..955144a6 100755
--- a/support/scripts/run-tupkgupdate
+++ b/support/scripts/run-tupkgupdate
@@ -1,17 +1,19 @@
#!/bin/bash
-aurroot=/srv/http/sites/aur
+aurroot=/srv/http/aur
+
+# Set HOME for correct cvs auth.
+HOME=$aurroot
echo "--------------------"
date
# Update the CVS tree.
-# Show a bit of the beginning output.
+# Filter out useless output.
cd $aurroot/cvs
echo "Updating CVS..."
-cvs update -d 2>&1 | grep "^P\|^U\|repository"
-cd -
+cvs update -dP 2>&1 | grep -v "Updating"
# tupkgupdate <repodir> <cvsdir> <incomingdir>
-$aurroot/aur/tupkg/update/tupkgupdate --delete --paranoid /srv/ftp/community/os/i686 $aurroot/cvs $aurroot/packages/full
+$aurroot/aur/tupkg/update/tupkgupdate -c $aurroot/tupkgs.conf --delete --paranoid /srv/ftp/community/os/i686 $aurroot/cvs $aurroot/packages/full