mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
5b47a29d2b
commit
084b11a6f2
2 changed files with 8 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/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 &
|
nohup $aurroot/aur/tupkg/server/tupkgs -c $aurroot/tupkgs.conf > $aurroot/tupkgs.log 2>&1 &
|
||||||
|
|
|
@ -1,17 +1,19 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
aurroot=/srv/http/sites/aur
|
aurroot=/srv/http/aur
|
||||||
|
|
||||||
|
# Set HOME for correct cvs auth.
|
||||||
|
HOME=$aurroot
|
||||||
|
|
||||||
echo "--------------------"
|
echo "--------------------"
|
||||||
date
|
date
|
||||||
|
|
||||||
# Update the CVS tree.
|
# Update the CVS tree.
|
||||||
# Show a bit of the beginning output.
|
# Filter out useless output.
|
||||||
cd $aurroot/cvs
|
cd $aurroot/cvs
|
||||||
echo "Updating CVS..."
|
echo "Updating CVS..."
|
||||||
cvs update -d 2>&1 | grep "^P\|^U\|repository"
|
cvs update -dP 2>&1 | grep -v "Updating"
|
||||||
cd -
|
|
||||||
|
|
||||||
# tupkgupdate <repodir> <cvsdir> <incomingdir>
|
# 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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue