move to git

This commit is contained in:
Roland Gruber 2016-03-25 12:50:28 +01:00
parent de73467c34
commit dda22833f6
1 changed files with 20 additions and 10 deletions

View File

@ -1,10 +1,10 @@
#!/bin/bash #!/bin/bash
# #
# Builds LDAP Account Manager packages from SVN. # Builds LDAP Account Manager packages.
if [ $# -lt 1 ] if [ $# -lt 1 ]
then then
echo -e "Usage: buildPackage <SVN tag>" echo -e "Usage: buildPackage <tag>"
exit exit
fi fi
@ -12,11 +12,11 @@ set -e
cd /daten/projekte/lam/pakete cd /daten/projekte/lam/pakete
if [ "$1" = "trunk" ] if [ "$1" = "develop" ]
then then
export SVN_TAG="trunk" export REPO_BRANCH="develop"
else else
export SVN_TAG="tags/$1" export REPO_BRANCH="tags/$1"
fi fi
# minifies the JavaScript files # minifies the JavaScript files
@ -37,12 +37,21 @@ function minify {
done done
} }
echo "Get files from SVN..." echo "Getting files..."
svn export -q svn+ssh://gruberroland@svn.code.sf.net/p/lam/code/$SVN_TAG/lam lam & git clone git@github.com:LDAPAccountManager/lam.git github
svn export -q svn+ssh://gruberroland@svn.code.sf.net/p/lam/code/$SVN_TAG/lam-packaging lam-packaging & cd github
svn export -q file:///daten/projekte/SVNROOT/$SVN_TAG/lamPro lamPro & git checkout $REPO_BRANCH
mv lam ../
mv lam-packaging ../
cd ..
rm -rf github
wait git clone file:///daten/dev/git local
cd local
git checkout $REPO_BRANCH
mv lamPro ../
cd ..
rm -rf local
cp lam-packaging/getVersion ./ cp lam-packaging/getVersion ./
export VERSION=`./getVersion` export VERSION=`./getVersion`
@ -52,6 +61,7 @@ rm -r lam/po
rm -r lam/tests rm -r lam/tests
rm lam/lib/font/*.ttf rm lam/lib/font/*.ttf
find . -name .svnignore -exec rm {} \; find . -name .svnignore -exec rm {} \;
find . -name .gitignore -exec rm {} \;
mv lam ldap-account-manager-$VERSION mv lam ldap-account-manager-$VERSION
# create LAM manual # create LAM manual