allow non-anonymous access
This commit is contained in:
@@ -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,16 +170,22 @@ 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
|
||||||
echo "Press [ENTER]!"
|
if [ $user = "anonymous" ] ; then
|
||||||
cvs -q -d:pserver:anonymous@$cvsserver:/cvsroot/phpmyadmin login
|
echo "Press [ENTER]!"
|
||||||
if [ $? -ne 0 ] ; then
|
cvs -q -d:pserver:anonymous@$cvsserver:/cvsroot/phpmyadmin login
|
||||||
echo "CVS login failed, bailing out"
|
if [ $? -ne 0 ] ; then
|
||||||
exit 1
|
echo "CVS login failed, bailing out"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cvs -q -z3 -d:pserver:anonymous@$cvsserver:/cvsroot/phpmyadmin co -P $branch phpMyAdmin
|
if [ $user = "anonymous" ] ; then
|
||||||
|
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"
|
||||||
|
Reference in New Issue
Block a user