]> git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/all/build-finalize
reduce the number of objects for a quicker startup time
[wxWidgets.git] / wxPython / distrib / all / build-finalize
1 #!/bin/bash
2 #----------------------------------------------------------------------
3
4 set -o errexit
5
6
7
8 chmod a+r $STAGING_DIR/*
9
10 if [ $KIND = dryrun ]; then
11 # we're done leave the files in the staging dir and quit
12 echo "Not uploading dryrun."
13 exit 0
14 fi
15
16
17 if [ $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"
28 scp -p $STAGING_DIR/* $UPLOAD_HOST:/$destdir
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
40 From: R'bot <rbot@wxpython.org>
41 To: $TO
42 Subject: $DAILY test build uploaded
43 Date: $DATE
44
45 Hi,
46
47 A 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
53 Have fun!
54 R'bot
55
56 EOF
57 fi
58
59 echo "Cleaning up staging dir..."
60 rm $STAGING_DIR/*
61 rmdir $STAGING_DIR
62
63 exit 0
64 fi
65
66
67 if [ $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"
78 scp -p $STAGING_DIR/* $UPLOAD_HOST:/$destdir
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
85 From: R'bot <rbot@wxpython.org>
86 To: $TO
87 Subject: $VERSION release candidate build uploaded
88 Date: $DATE
89
90 Hi,
91
92 A new RC build of wxPython has been uploaded to starship.
93
94 Version: $VERSION
95 URL: http://starship.python.net/crew/robind/wxPython/rc/$VERSION
96 Changes: http://starship.python.net/crew/robind/wxPython/rc/$VERSION/CHANGES.html
97
98 Have fun!
99 R'bot
100
101 EOF
102
103 fi
104
105 echo "Cleaning up staging dir..."
106 rm $STAGING_DIR/*
107 rmdir $STAGING_DIR
108
109 exit 0
110 fi
111