#! /bin/bash # # Mise a jour spice kernels depuis site sftp du MSSL # # COMMANDE OBSOLETE ## OUTPUT_DIR=${SOLAR_ROOT}/SPICE cd ${OUTPUT_DIR} lftp -u swa_pas_mssl, sftp://msslx8.mssl.ucl.ac.uk:60000 <<'EOF' mirror -rvn outgoing/SolO_SPICE_Kernels EOF # Force EXIT exit LAST_ZIP=$(ls -1 SolO_SPICE_Kernels/*zip | tail -1) echo "Update from $LAST_ZIP" rm -fr kernels.save mv -f kernels kernels.save unzip ${LAST_ZIP} -d . echo "Update from $LAST_ZIP" python -m update_mk echo "Latest : $(ls -1 kernels/ck/*flown* | tail -1)"