Reindent and fix svn+ssh checkout.

This commit is contained in:
Andrius Štikonas 2009-03-17 11:47:21 +02:00
parent 1883def34c
commit cf9e2f6409
1 changed files with 51 additions and 58 deletions

109
checkout
View File

@ -17,104 +17,97 @@
source `dirname $0`/ths-variables source `dirname $0`/ths-variables
if [ ! -f $THS ]; then if [ ! -f $THS ]; then
echo "Please enter your language code (Default: lt):" echo "Please enter your language code (Default: lt):"
read lcode read lcode
if [ ! "$lcode" ]; then if [ ! "$lcode" ]; then
lcode="lt" lcode="lt"
fi fi
echo lcode="$lcode" >> $THS echo lcode="$lcode" >> $THS
echo "Enter path for stable templates (Default: `pwd`/pot-stable/):" echo "Enter path for stable templates (Default: `pwd`/pot-stable/):"
read potstable read potstable
if [ ! "$potstable" ]; then if [ ! "$potstable" ]; then
potstable="pot-stable/" potstable="pot-stable/"
fi fi
echo potstable="$potstable" >> $THS echo potstable="$potstable" >> $THS
echo "Enter path for trunk templates (Default: `pwd`/pot-trunk/):" echo "Enter path for trunk templates (Default: `pwd`/pot-trunk/):"
read pottrunk read pottrunk
if [ ! "$pottrunk" ]; then if [ ! "$pottrunk" ]; then
pottrunk="pot-trunk/" pottrunk="pot-trunk/"
fi fi
echo pottrunk="$pottrunk" >> $THS echo pottrunk="$pottrunk" >> $THS
echo "Enter path for stable messages (Default: `pwd`/stable/):" echo "Enter path for stable messages (Default: `pwd`/stable/):"
read postable read postable
if [ ! "$postable" ]; then if [ ! "$postable" ]; then
postable="stable/" postable="stable/"
fi fi
echo postable="$postable" >> $THS echo postable="$postable" >> $THS
echo "Enter path for trunk messages (Default: `pwd`/pot-trunk/):" echo "Enter path for trunk messages (Default: `pwd`/pot-trunk/):"
read potrunk read potrunk
if [ ! "$potrunk" ]; then if [ ! "$potrunk" ]; then
potrunk="trunk/" potrunk="trunk/"
fi fi
echo potrunk="$potrunk" >> $THS echo potrunk="$potrunk" >> $THS
while [ ! "$documentation" = "n" ] && [ ! "$documentation" = "y" ]; do while [ ! "$documentation" = "n" ] && [ ! "$documentation" = "y" ]; do
echo "Do you want to checkout documentation messages and templates? [y/N]" echo "Do you want to checkout documentation messages and templates? [y/N]"
read documentation read documentation
documentation=`echo $documentation | tr YN yn` documentation=`echo $documentation | tr YN yn`
if [ ! $documentation ]; then if [ ! $documentation ]; then
documentation="n" documentation="n"
fi fi
done done
echo documentation="$documentation" >> $THS echo documentation="$documentation" >> $THS
if [ "$documentation" = "y" ]; then if [ "$documentation" = "y" ]; then
echo "Enter path for documentation stable templates (Default: `pwd`/doc-pot-stable/):" echo "Enter path for documentation stable templates (Default: `pwd`/doc-pot-stable/):"
read docpotstable read docpotstable
if [ ! "$docpotstable" ]; then if [ ! "$docpotstable" ]; then
docpotstable="doc-pot-stable/" docpotstable="doc-pot-stable/"
fi fi
echo docpotstable="$docpotstable" >> $THS echo docpotstable="$docpotstable" >> $THS
echo "Enter path for documentation trunk templates (Default: `pwd`/doc-pot-trunk/):" echo "Enter path for documentation trunk templates (Default: `pwd`/doc-pot-trunk/):"
read docpottrunk read docpottrunk
if [ ! "$docpottrunk" ]; then if [ ! "$docpottrunk" ]; then
docpottrunk="doc-pot-trunk/" docpottrunk="doc-pot-trunk/"
fi fi
echo docpottrunk="$docpottrunk" >> $THS echo docpottrunk="$docpottrunk" >> $THS
echo "Enter path for documentation stable messages (Default: `pwd`/doc-stable/):" echo "Enter path for documentation stable messages (Default: `pwd`/doc-stable/):"
read docstable read docstable
if [ ! "$docstable" ]; then if [ ! "$docstable" ]; then
docstable="doc-stable/" docstable="doc-stable/"
fi fi
echo docstable="$docstable" >> $THS echo docstable="$docstable" >> $THS
echo "Enter path for documentation trunk messages (Default: `pwd`/doc-trunk/):" echo "Enter path for documentation trunk messages (Default: `pwd`/doc-trunk/):"
read doctrunk read doctrunk
if [ ! "$doctrunk" ]; then if [ ! "$doctrunk" ]; then
doctrunk="doc-trunk/" doctrunk="doc-trunk/"
fi fi
echo doctrunk="$doctrunk" >> $THS echo doctrunk="$doctrunk" >> $THS
fi fi
echo "Enter enter workspace prefix (Default: workspace):"
read workspace
if [ ! "$workspace" ]; then
workspace="workspace"
fi
echo workspace="$workspace" >> $THS
while [ ! "$svnwrite" = "n" ] && [ ! "$svnwrite" = "y" ]; do while [ ! "$svnwrite" = "n" ] && [ ! "$svnwrite" = "y" ]; do
echo "Do you have write access to KDE svn repository? [y/N]" echo "Do you have write access to KDE svn repository? [y/N]"
read svnwrite read svnwrite
svnwrite=`echo $svnwrite | tr YN yn` svnwrite=`echo $svnwrite | tr YN yn`
if [ ! $svnwrite ]; then if [ ! $svnwrite ]; then
svnwrite="n" svnwrite="n"
fi fi
done done
echo svnwrite="$svnwrite" >> $THS echo svnwrite="$svnwrite" >> $THS
if [ "$svnwrite" = "y" ]; then if [ "$svnwrite" = "y" ]; then
while [ "$username" ]; do while [ ! "$username" ]; do
echo "Please enter your username for KDE svn repository:" echo "Please enter your username for KDE svn repository:"
read username read username
done done
echo username="$username" >> $THS echo username="$username" >> $THS
fi fi
# Checkout repositories. # Checkout repositories.