1 #!/bin/bash 2 3 # Copy the prototype files from the milestone build machines. 4 5 6 # Ensure that the script is executed from the script's directory. 7 ScriptDir=`dirname $0` # Get potentially relative script directory. 8 ScriptDir=`( cd $ScriptDir; /usr/bin/pwd )` # Get absolute directory. 9 cd $ScriptDir 10 11 # Just to be sure... 12 if [ ! -f `basename $0` ] 13 then 14 echo "ERROR: You must run this script from the directory where it exists." 15 exit 1 16 fi 17 18 if [ ! -d x86 -o ! -d sparc ] 19 then 20 echo "ERROR: The x86 and sparc dirs for the prototype files are not present." 21 exit 1 22 fi 23 24 echo "Copy files from verbal.ireland..." 25 cd x86 26 scp -p -q verbal.ireland:/jails/verm-mile/root/jds/packages/PKGMAPS/proto/*.proto . 27 cd .. 28 29 echo "Copy files from capa.ireland..." 30 cd sparc 31 scp -p -q capa.ireland:/jails/verm-mile/root/jds/packages/PKGMAPS/proto/*.proto . 32 cd .. 33 34 # Remove proto files for 'src' packages as we are not interested in them. 35 rm -f x86/*-src.proto sparc/*-src.proto 36 37 echo "Done." 38 39