forked from pentaho/pentaho-kettle
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathautobuild.sh
More file actions
34 lines (24 loc) · 715 Bytes
/
autobuild.sh
File metadata and controls
34 lines (24 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
cd $(dirname $0)
JAVA_HOME=/usr/java/j2sdk1.4.2_13
export JAVA_HOME
TEMP_FILE=/tmp/autobuild.$$.log
echo "Running autobuild : `date`"
svn update > ${TEMP_FILE}
cat ${TEMP_FILE}
NR_LINES=$( cat ${TEMP_FILE} | egrep -v "^At revision|^Updated to revision" | wc -l )
if [ ${NR_LINES} -gt 0 ]
then
echo "----------------------------------------------------------------"
echo "There where ${NR_LINES} commits, initiating build process..."
echo "----------------------------------------------------------------"
echo
ant zip
#
# upload kettle3.jar to Kettle.be
#
cd lib
ftp -u ftp://www.kettle.be:*******@www.kettle.be/dloads/ kettle3.jar
else
echo "Nothing was updated"
fi
rm ${TEMP_FILE}