SVN migration

This commit is contained in:
Roland Gruber 2013-01-19 18:53:28 +00:00
parent 9a6a243139
commit 0b5f8cb11b
1 changed files with 12 additions and 8 deletions

View File

@ -1,10 +1,10 @@
#!/bin/bash #!/bin/bash
# #
# Builds LDAP Account Manager packages from CVS. # Builds LDAP Account Manager packages from SVN.
if [ $# -lt 1 ] if [ $# -lt 1 ]
then then
echo -e "Usage: buildPackage <CVS tag>" echo -e "Usage: buildPackage <SVN tag>"
exit exit
fi fi
@ -12,11 +12,16 @@ set -e
cd /daten/projekte/lam/pakete cd /daten/projekte/lam/pakete
export CVS_TAG=$1 if [ "$1" = "trunk" ]
then
export SVN_TAG="trunk"
else
export SVN_TAG="tags/$1"
fi
cvs -z3 -d:ext:gruberroland@lam.cvs.sourceforge.net:/cvsroot/lam export -r $CVS_TAG lam svn export https://lam.svn.sourceforge.net/svnroot/lam/$SVN_TAG/lam lam
cvs -z3 -d:ext:gruberroland@lam.cvs.sourceforge.net:/cvsroot/lam export -r $CVS_TAG lam-packaging svn export https://lam.svn.sourceforge.net/svnroot/lam/$SVN_TAG/lam-packaging lam-packaging
cvs -d/daten/projekte/CVSROOT export -r $CVS_TAG lamPro svn export file:///daten/projekte/SVNROOT/$SVN_TAG/lamPro lamPro
cp lam-packaging/getVersion ./ cp lam-packaging/getVersion ./
export VERSION=`./getVersion` export VERSION=`./getVersion`
@ -25,7 +30,7 @@ export VERSION=`./getVersion`
rm -r lam/po rm -r lam/po
rm -r lam/tests rm -r lam/tests
rm lam/lib/font/*.ttf rm lam/lib/font/*.ttf
find . -name .cvsignore -exec rm {} \; find . -name .svnignore -exec rm {} \;
mv lam ldap-account-manager-$VERSION mv lam ldap-account-manager-$VERSION
# create LAM manual # create LAM manual
@ -149,4 +154,3 @@ cd ..
rm -r lam-packaging rm -r lam-packaging
rm getVersion rm getVersion
rm buildPackages rm buildPackages