git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
		
			
				
	
	
		
			112 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			112 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
#----------------------------------------------------------------------
 | 
						|
 | 
						|
set -o errexit
 | 
						|
 | 
						|
 | 
						|
 | 
						|
chmod a+r $STAGING_DIR/*
 | 
						|
 | 
						|
if [ $KIND = dryrun ]; then
 | 
						|
    # we're done leave the files in the staging dir and quit
 | 
						|
    echo "Not uploading dryrun."
 | 
						|
    exit 0
 | 
						|
fi
 | 
						|
 | 
						|
 | 
						|
if [ $KIND = daily ]; then 
 | 
						|
 | 
						|
    echo "Copying to the local file server..."
 | 
						|
    destdir=/stuff/temp/$VERSION
 | 
						|
    mkdir -p $destdir
 | 
						|
    cp $STAGING_DIR/* $destdir
 | 
						|
 | 
						|
    if [ $skipupload != yes ]; then 
 | 
						|
	destdir=$UPLOAD_DAILY_ROOT/$DAILY
 | 
						|
	echo "Copying to the starship at $destdir..."
 | 
						|
	ssh $UPLOAD_HOST "mkdir -p $destdir"
 | 
						|
	scp -p $STAGING_DIR/* $UPLOAD_HOST:/$destdir
 | 
						|
	ssh $UPLOAD_HOST "cd $destdir && ls -al"
 | 
						|
 | 
						|
 | 
						|
        # TODO: something to remove old builds from starship, keeping 
 | 
						|
        # only N days worth
 | 
						|
 | 
						|
        # Send email to wxPython-dev
 | 
						|
	DATE=`date`
 | 
						|
	TO=wxPython-dev@lists.wxwidgets.org
 | 
						|
 | 
						|
	cat <<EOF  | /usr/sbin/sendmail  $TO
 | 
						|
From: R'bot <rbot@wxpython.org>
 | 
						|
To: $TO
 | 
						|
Subject: $DAILY test build uploaded
 | 
						|
Date: $DATE
 | 
						|
 | 
						|
Hi,
 | 
						|
 | 
						|
A new test build of wxPython has been uploaded to starship.  
 | 
						|
 | 
						|
   Version: $VERSION
 | 
						|
   URL:     http://starship.python.net/crew/robind/wxPython/daily/$DAILY
 | 
						|
   Changes: http://starship.python.net/crew/robind/wxPython/daily/$DAILY/CHANGES.html
 | 
						|
 | 
						|
Have fun!
 | 
						|
R'bot
 | 
						|
 | 
						|
EOF
 | 
						|
    fi
 | 
						|
 | 
						|
    echo "Cleaning up staging dir..."
 | 
						|
    rm $STAGING_DIR/*
 | 
						|
    rmdir $STAGING_DIR
 | 
						|
 | 
						|
    exit 0
 | 
						|
fi
 | 
						|
 | 
						|
 | 
						|
if [ $KIND = release ]; then 
 | 
						|
 | 
						|
    echo "Copying to the local file server..."
 | 
						|
    destdir=/stuff/Development/wxPython/dist/$VERSION
 | 
						|
    mkdir -p $destdir
 | 
						|
    cp $STAGING_DIR/* $destdir
 | 
						|
 | 
						|
    if [ $skipupload != yes ]; then 
 | 
						|
	echo "Copying to the starship..."
 | 
						|
	destdir=$UPLOAD_PREVIEW_ROOT/$VERSION
 | 
						|
	ssh $UPLOAD_HOST "mkdir -p $destdir"
 | 
						|
	scp -p $STAGING_DIR/* $UPLOAD_HOST:/$destdir
 | 
						|
 | 
						|
        # Send email to wxPython-dev
 | 
						|
	DATE=`date`
 | 
						|
	TO=wxPython-dev@lists.wxwidgets.org
 | 
						|
 | 
						|
	cat <<EOF  | /usr/sbin/sendmail  $TO
 | 
						|
From: R'bot <rbot@wxpython.org>
 | 
						|
To: $TO
 | 
						|
Subject: $VERSION release candidate build uploaded
 | 
						|
Date: $DATE
 | 
						|
 | 
						|
Hi,
 | 
						|
 | 
						|
A new RC build of wxPython has been uploaded to starship.  
 | 
						|
 | 
						|
   Version: $VERSION
 | 
						|
   URL:     http://starship.python.net/crew/robind/wxPython/rc/$VERSION
 | 
						|
   Changes: http://starship.python.net/crew/robind/wxPython/rc/$VERSION/CHANGES.html
 | 
						|
 | 
						|
Have fun!
 | 
						|
R'bot
 | 
						|
 | 
						|
EOF
 | 
						|
 | 
						|
    fi
 | 
						|
 | 
						|
    echo "Cleaning up staging dir..."
 | 
						|
    rm $STAGING_DIR/*
 | 
						|
    rmdir $STAGING_DIR
 | 
						|
 | 
						|
    exit 0
 | 
						|
fi
 | 
						|
 |