deploy-rspec 1.61 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#!/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

27 28 29
for path in $1/ext/delay/1/ $1/ext/opstate/1 $1/ext/shared-vlan/1 $1/ext/user/1; do
    for schema in request ad; do 
	echo RUNNING $path on $schema
30 31 32 33 34 35
	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

36 37
sudo scp $1/rspeclint ops.emulab.net:/usr/local/www.geni/data/trac/resources/

38 39 40 41 42 43 44 45 46 47
#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/