And that the ix86_Linux file contains the date (ddmmyy) of the build (just
in case).
Steve.
-----Original Message-----
From: David Berry [mailto:[log in to unmask]]
Sent: 30 January 2004 08:43
To: [log in to unmask]
Subject: Re: Automatic updating of /stardev using rsync and ssh
Peter,
> you should test for the existence of "/stardev/ix86_Linux" on saturn
> before doing the rsync, otherwise you might update to a broken build.
Yes - I forgot that. The following script should do the trick:
#!/bin/tcsh
# Change directory to the root of teh stardev tree
cd /stardev
# The file ix86_Linux is used to indicate that the build succeeded. Remove
# any existing version of this file from the local machine
rm -f ix86_Linux
# Attempt to copy the current version of ix86_Linux from the remote machine
rsync -avz -e "ssh -i /home/dsb/.ssh/rsync_dsa -l dsb" \
[log in to unmask]::stardev/ix86_Linux .
# Check that the above copy succeeded by checking for the esitence of
# ix86_Linux on the local machine. If so continue to update the entire
# stardev tree.
if( -e ix86_Linux ) then
rsync -avz -e "ssh -i /home/dsb/.ssh/rsync_dsa -l dsb" \
[log in to unmask]::stardev .
else
echo "\n\nThe nightly stardev build seems to have failed. Nothing
copied.\n\n"
endif
----------------------------------------------------------------------
Dr David S. Berry ([log in to unmask])
STARLINK project | Centre for Astrophysics
(http://www.starlink.ac.uk/) | University of Central Lancashire
Rutherford Appleton Laboratory | PRESTON
DIDCOT | United Kingdom
United Kingdom | PR1 2HE
OX11 0QX Tel. 01772 893733
01257 273192
|