makeRemote 1.13 KB
#!/bin/bash

#
#   
#
   if [ -z ${AMDA_IHM+x} ]; then export AMDA_IHM=./..; fi

#
#  "AMDA side" ( IMPEX-like ) data centers
#
   
	# check if Orbites.xml exists; if not create it !
	if [ ! -e $AMDA_IHM/generic_data/LocalData/OrbitsAll.xml ]; then   
		php  $AMDA_IHM/php/makeOrbitsList.php
		php  $AMDA_IHM/php/makeOrbitsInKm.php
	fi

	# make Proxies for 'isSimulation' dataCenters from Bases.xml
	php  $AMDA_IHM/php/RemoteDataCenter/makeProxy.php
	
	# make [TARGET].json
	php  $AMDA_IHM/php/RemoteDataCenter/makeOrbitsArgs.php
	
	# make help/simu/simu[TARGET]
	php  $AMDA_IHM/php/RemoteDataCenter/makeOrbitsInfo.php
	
	# make template args
	php  $AMDA_IHM/php/RemoteDataCenter/makeArgs.php
	
	if  [ ! -e $AMDA_IHM/generic_data/RemoteData/Bases.xml ]; then 
		cp $AMDA_IHM/php/RemoteDataCenter/Bases.xml $AMDA_IHM/generic_data/RemoteData
	fi
	
#
#  "DDBASE side" ( CDAWEB-like ) data centers
#
	php $AMDA_IHM/php/RemoteDataCenter/getRemoteDDBaseProxies.php

	# copy "DDBASE" Remote Params descriptions
	if [ -d $AMDA_IHM/generic_data/RemoteData/PARAMS ]; then
		cp $AMDA_IHM/generic_data/RemoteData/PARAMS/* $AMDA_IHM/generic_data/newKernelDDBase/
	fi