]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/all/build-finalize
Build and distrib tweaks ported over from the 2.6 branch
[wxWidgets.git] / wxPython / distrib / all / build-finalize
CommitLineData
e4bb5998
RD
1#!/bin/bash
2#----------------------------------------------------------------------
3
4set -o errexit
5
e4bb5998
RD
6
7
8chmod a+r $STAGING_DIR/*
9
10if [ $KIND = dryrun ]; then
11 # we're done leave the files in the staging dir and quit
12 echo "Not uploading dryrun."
13 exit 0
14fi
15
16
17if [ $KIND = daily ]; then
18
19 echo "Copying to the local file server..."
20 destdir=/stuff/temp/$VERSION
21 mkdir -p $destdir
22 cp $STAGING_DIR/* $destdir
23
24 if [ $skipupload != yes ]; then
25 destdir=$UPLOAD_DAILY_ROOT/$DAILY
26 echo "Copying to the starship at $destdir..."
27 ssh $UPLOAD_HOST "mkdir -p $destdir"
486afba9 28 scp -p $STAGING_DIR/* $UPLOAD_HOST:/$destdir
e4bb5998
RD
29 ssh $UPLOAD_HOST "cd $destdir && ls -al"
30
31
32 # TODO: something to remove old builds from starship, keeping
33 # only N days worth
34
35 # Send email to wxPython-dev
36 DATE=`date`
37 TO=wxPython-dev@lists.wxwidgets.org
38
39 cat <<EOF | /usr/sbin/sendmail $TO
40From: R'bot <rbot@wxpython.org>
41To: $TO
42Subject: $DAILY test build uploaded
43Date: $DATE
44
45Hi,
46
47A new test build of wxPython has been uploaded to starship.
48
49 Version: $VERSION
50 URL: http://starship.python.net/crew/robind/wxPython/daily/$DAILY
51 Changes: http://starship.python.net/crew/robind/wxPython/daily/$DAILY/CHANGES.html
52
53Have fun!
54R'bot
55
56EOF
57 fi
58
59 echo "Cleaning up staging dir..."
60 rm $STAGING_DIR/*
61 rmdir $STAGING_DIR
62
63 exit 0
64fi
65
66
67if [ $KIND = release ]; then
68
69 echo "Copying to the local file server..."
70 destdir=/stuff/Development/wxPython/dist/$VERSION
71 mkdir -p $destdir
72 cp $STAGING_DIR/* $destdir
73
74 if [ $skipupload != yes ]; then
75 echo "Copying to the starship..."
76 destdir=$UPLOAD_PREVIEW_ROOT/$VERSION
77 ssh $UPLOAD_HOST "mkdir -p $destdir"
486afba9 78 scp -p $STAGING_DIR/* $UPLOAD_HOST:/$destdir
e4bb5998
RD
79
80 # Send email to wxPython-dev
81 DATE=`date`
82 TO=wxPython-dev@lists.wxwidgets.org
83
84 cat <<EOF | /usr/sbin/sendmail $TO
85From: R'bot <rbot@wxpython.org>
86To: $TO
87Subject: $VERSION release candidate build uploaded
88Date: $DATE
89
90Hi,
91
92A new RC build of wxPython has been uploaded to starship.
93
94 Version: $VERSION
391a2d0e
RD
95 URL: http://starship.python.net/crew/robind/wxPython/rc/$VERSION
96 Changes: http://starship.python.net/crew/robind/wxPython/rc/$VERSION/CHANGES.html
e4bb5998
RD
97
98Have fun!
99R'bot
100
101EOF
102
103 fi
104
105 echo "Cleaning up staging dir..."
106 rm $STAGING_DIR/*
107 rmdir $STAGING_DIR
108
109 exit 0
110fi
111