Create ~/maven.properties if it doesn't exists.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162904 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Emmanuel Venisse 2004-07-28 06:10:48 +00:00
parent 4c9a71e624
commit 981a6cbfd0
1 changed files with 12 additions and 0 deletions

12
ci.sh
View File

@ -38,6 +38,18 @@ TIMESTAMP=`date +%Y%M%d.%H%M%S`
DEPLOY_DIR=$HOME_DIR/public_html/m2 DEPLOY_DIR=$HOME_DIR/public_html/m2
DEPLOY_SITE=http://www.codehaus.org/~jvanzyl/m2 DEPLOY_SITE=http://www.codehaus.org/~jvanzyl/m2
# ----------------------------------------------------------------------------------
# Check if ~/maven.properties exists
# ----------------------------------------------------------------------------------
if [ ! -f ~/maven.properties ]
then
echo
echo "maven.properties doesn't exists. I create it."
echo "maven.home=$M2_HOME" > ~/maven.properties
echo "maven.repo.local=$REPO" >> ~/maven.properties
echo
fi
# ---------------------------------------------------------------------------------- # ----------------------------------------------------------------------------------
# Wipe out the working directory and the repository and start entirely # Wipe out the working directory and the repository and start entirely