2004-04-09 00:27:28 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2004-04-09 10:11:57 -04:00
|
|
|
# ----------------------------------------------------------------------------------
|
|
|
|
# To run this script on your machine you must:
|
2004-04-09 00:27:28 -04:00
|
|
|
#
|
2004-04-09 10:11:57 -04:00
|
|
|
# 1. export MBOOT_HOME=~/mboot
|
|
|
|
#
|
|
|
|
# 2. export MAVEN_HOME=~/maven
|
|
|
|
#
|
|
|
|
# 3. export PATH=$PATH:$MBOOT:$MAVEN_HOME/bin
|
|
|
|
#
|
|
|
|
# 4. Your ~/build.properties must have: maven.repo.local = ~/path/to/repo
|
|
|
|
#
|
|
|
|
# ----------------------------------------------------------------------------------
|
2004-04-09 00:27:28 -04:00
|
|
|
|
|
|
|
DIR=maven2
|
|
|
|
REPO=maven-repo-local
|
2004-04-09 10:11:57 -04:00
|
|
|
FROM=jvanzyl@maven.org
|
|
|
|
TO=maven2-user@lists.codehaus.org
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# Wipe out the working directory and the repository and start entirely
|
|
|
|
# from scratch.
|
2004-04-09 00:27:28 -04:00
|
|
|
|
|
|
|
rm -rf $DIR > /dev/null 2>&1
|
|
|
|
rm -rf $REPO > /dev/null 2>&1
|
|
|
|
mkdir $DIR
|
|
|
|
mkdir $REPO
|
|
|
|
|
2004-04-09 10:11:57 -04:00
|
|
|
# ----------------------------------------------------------------------------------
|
|
|
|
|
2004-04-09 00:27:28 -04:00
|
|
|
DATE=`date`
|
2004-04-09 10:11:57 -04:00
|
|
|
echo "From: $FROM" > log
|
|
|
|
echo "To: $TO" >> log
|
2004-04-09 00:27:28 -04:00
|
|
|
echo "Subject: Maven bootstrap on beaver [$DATE]" >> log
|
|
|
|
echo "" >> log
|
|
|
|
|
|
|
|
(
|
|
|
|
(
|
|
|
|
cd $DIR
|
|
|
|
|
|
|
|
export CVSROOT=:pserver:anoncvs@cvs.apache.org:/home/cvspublic
|
|
|
|
|
|
|
|
echo "Checking out maven-components ..."
|
|
|
|
|
|
|
|
cvs co maven-components > checkout.log 2>&1
|
|
|
|
)
|
|
|
|
|
|
|
|
(
|
|
|
|
cd $DIR/maven-components/maven-core
|
|
|
|
|
|
|
|
./bootstrap-all.sh
|
|
|
|
)
|
|
|
|
) >> log 2>&1
|
|
|
|
|
|
|
|
sendmail -t < log
|