1
0
mirror of https://github.com/php/systems.git synced 2026-03-23 23:32:12 +01:00
Files
archived-systems/update-cvs-mail-aliases
Rasmus Lerdorf e3d15fa4bb master -> main
2021-04-05 21:49:14 -07:00

16 lines
309 B
Bash
Executable File

#!/bin/sh
FILE=~alias/cvsusers.txt
wget -q -T 30 -O $FILE~ http://main.php.net/fetch/cvsforwarding.php?token=$TOKEN
if test $? -eq 0 -a -s $FILE~; then
mv $FILE~ $FILE
else
echo failed to update $FILE
rm -f $FILE~
exit 1
fi
setforward ~alias/cvsusers.cdb ~alias/cvsusers.tmp < ~alias/cvsusers.txt