allow non-anonymous access

This commit is contained in:
Marc Delisle
2006-10-07 14:09:19 +00:00
parent f291842f27
commit da73fbe051

View File

@@ -72,23 +72,33 @@ cvsserver=${cvsserver:-phpmyadmin.cvs.sourceforge.net}
KITS="all-languages-utf-8-only all-languages english" KITS="all-languages-utf-8-only all-languages english"
COMPRESSIONS="zip-7z tbz tgz 7z" COMPRESSIONS="zip-7z tbz tgz 7z"
# third param is the user; when creating a release we don't want
# to suffer from the delay between anonymous cvs and developer cvs
if [ $# = 0 ] if [ $# = 0 ]
then then
echo "Usage: create-release.sh version from_branch" echo "Usage: create-release.sh version from_branch devname"
echo " (no spaces allowed!)" echo " (no spaces allowed!)"
echo "" echo ""
echo "Example: create-release.sh 2.2.7-rc1 v2_2_7-branch" echo "Example: create-release.sh 2.9.0-rc1 QA_2_9 lem9"
exit 65 exit 65
fi fi
if [ "$1" = "snapshot" ] if [ "$1" = "snapshot" ]
then then
branch='' branch=''
elif [ "$#" = 2 ] elif [ "$#" -ge 2 ]
then then
branch="-r $2" branch="-r $2"
fi fi
user="anonymous"
if [ "$#" -eq 3 ]
then
user=$3
fi
if [ $1 = "snapshot" ] if [ $1 = "snapshot" ]
then then
mode="snapshot" mode="snapshot"
@@ -160,6 +170,7 @@ if [ "$mode" != "snapshot" ] ; then
if grep -Fq ':pserver:anonymous@phpmyadmin.cvs.sourceforge.net:2401/cvsroot/phpmyadmin' ~/.cvspass ; then if grep -Fq ':pserver:anonymous@phpmyadmin.cvs.sourceforge.net:2401/cvsroot/phpmyadmin' ~/.cvspass ; then
echo "You seem to be already logged into phpMyAdmin CVS, skipping that" echo "You seem to be already logged into phpMyAdmin CVS, skipping that"
else else
if [ $user = "anonymous" ] ; then
echo "Press [ENTER]!" echo "Press [ENTER]!"
cvs -q -d:pserver:anonymous@$cvsserver:/cvsroot/phpmyadmin login cvs -q -d:pserver:anonymous@$cvsserver:/cvsroot/phpmyadmin login
if [ $? -ne 0 ] ; then if [ $? -ne 0 ] ; then
@@ -168,8 +179,13 @@ if [ "$mode" != "snapshot" ] ; then
fi fi
fi fi
fi fi
fi
if [ $user = "anonymous" ] ; then
cvs -q -z3 -d:pserver:anonymous@$cvsserver:/cvsroot/phpmyadmin co -P $branch phpMyAdmin cvs -q -z3 -d:pserver:anonymous@$cvsserver:/cvsroot/phpmyadmin co -P $branch phpMyAdmin
else
cvs -q -z3 -d:ext:$user@$cvsserver:/cvsroot/phpmyadmin co -P $branch phpMyAdmin
fi
if [ $? -ne 0 ] ; then if [ $? -ne 0 ] ; then
echo "CVS checkout failed, bailing out" echo "CVS checkout failed, bailing out"