summaryrefslogtreecommitdiffstats
path: root/tupkg/scripts/run-tupkgupdate
diff options
context:
space:
mode:
Diffstat (limited to 'tupkg/scripts/run-tupkgupdate')
-rwxr-xr-xtupkg/scripts/run-tupkgupdate19
1 files changed, 19 insertions, 0 deletions
diff --git a/tupkg/scripts/run-tupkgupdate b/tupkg/scripts/run-tupkgupdate
new file mode 100755
index 0000000..955144a
--- /dev/null
+++ b/tupkg/scripts/run-tupkgupdate
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+aurroot=/srv/http/aur
+
+# Set HOME for correct cvs auth.
+HOME=$aurroot
+
+echo "--------------------"
+date
+
+# Update the CVS tree.
+# Filter out useless output.
+cd $aurroot/cvs
+echo "Updating CVS..."
+cvs update -dP 2>&1 | grep -v "Updating"
+
+# tupkgupdate <repodir> <cvsdir> <incomingdir>
+$aurroot/aur/tupkg/update/tupkgupdate -c $aurroot/tupkgs.conf --delete --paranoid /srv/ftp/community/os/i686 $aurroot/cvs $aurroot/packages/full
+