10139N/A#!/bin/bash
10139N/A
10139N/A# Copy the prototype files from the milestone build machines.
10139N/A
10139N/A
10139N/A# Ensure that the script is executed from the script's directory.
10139N/AScriptDir=`dirname $0` # Get potentially relative script directory.
10139N/AScriptDir=`( cd $ScriptDir; /usr/bin/pwd )` # Get absolute directory.
10139N/Acd $ScriptDir
17185N/A
10139N/A# Just to be sure...
10139N/Aif [ ! -f `basename $0` ]
10374N/Athen
10374N/A echo "ERROR: You must run this script from the directory where it exists."
10374N/A exit 1
10374N/Afi
10374N/A
10374N/Aif [ ! -d x86 -o ! -d sparc ]
10374N/Athen
10139N/A echo "ERROR: The x86 and sparc dirs for the prototype files are not present."
10139N/A exit 1
10139N/Afi
18688N/A
18688N/Aecho "Copy files from goto10.ireland..."
10139N/Acd x86
10139N/Ascp -p -q goto10.ireland:/jails/snv-mile/root/jds/packages/PKGMAPS/proto/*.proto .
10139N/Acd ..
12673N/A
10139N/Aecho "Copy files from astro.ireland..."
10139N/Acd sparc
10139N/Ascp -p -q astro.ireland:/jails/snv-mile/root/jds/packages/PKGMAPS/proto/*.proto .
10139N/Acd ..
10139N/A
13710N/A# Remove proto files for 'src' packages as we are not interested in them.
13710N/Arm -f x86/*-src.proto sparc/*-src.proto
10139N/A
10139N/Aecho "Done."
10139N/A
10139N/A