Commit 98eb7972 authored by Jonathon Duerig's avatar Jonathon Duerig

A script to deploy rspecs to the old protogeni.net locations.

This only copies over existing schemas and does not build them.
parent 5bbd4e03
#!/bin/sh
# Usage: deploy-rspec <path-to-rspec-root>
# Should be run only on boss.
for path in $1/0.1 $1/0.2 $1/2; do
sudo scp ${path}/*.xsd ${path}/*.rnc ops.emulab.net:/usr/local/www.geni/data/trac/resources/rspec/${path}/
done
for path in $1/ext/gre-tunnel/1; do
for schema in ad request manifest; do
if [ -e ${path}/${schema}.rnc ]; then
sudo scp ${path}/${schema}.xsd ${path}/${schema}.rnc ops.emulab.net:/usr/local/www.geni/data/trac/resources/rspec/${path}/
fi
done
done
# Compile extensions
for path in $1/ext/emulab/1/; do
for schema in top_extension ptop_extension vtop_extension; do
if [ -e ${path}/${schema}.rnc ]; then
sudo scp ${path}/${schema}.xsd ${path}/${schema}.rnc ops.emulab.net:/usr/local/www.geni/data/trac/resources/rspec/${path}/
fi
done
done
for path in $1/ext/delay/1/; do
for schema in request; do
if [ -e ${path}/${schema}.rnc ]; then
sudo scp ${path}/${schema}.xsd ${path}/${schema}.rnc ops.emulab.net:/usr/local/www.geni/data/trac/resources/rspec/${path}/
fi
done
done
#cd ../security
#for path in ext/policy/1; do
# if [ -e ${path}/policy.rnc ]; then
# $TRANGCMD ${path}/policy.rnc ${path}/policy.xsd
# sudo scp ${path}/policy.xsd ${path}/policy.rnc ops.emulab.net:/usr/local/www.geni/data/trac/resources/credential/${path}/
# fi
#done
#sudo scp credential.xsd protogeni-rspec-common.xsd top.xsd sig.xsd xml.xsd ops.emulab.net:/usr/local/www.geni/data/trac/resources/credential/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment