#!/bin/bash
[ "$1" == "" ] && exec echo "Usage: $0 <MACHINE>"

MACHINE=$1

echo "Machine: ${MACHINE}"
echo "============"

cd ~/www/N1-TEST/
echo "Notice"
rsync -avz *_notice.txt ${MACHINE}:~/www/N1-TEST/.
echo "Maintenance"
rsync -avz *_maintenance.txt ${MACHINE}:~/www/N1-TEST/.

cd ~/www/N1-TEST/Android/translate_data
echo "Translate: Android"
rsync -avz db_* ${MACHINE}:~/www/N1-TEST/Android/translate_data/.
echo "Translate: iOS"
rsync -avz db_* ${MACHINE}:~/www/N1-TEST/iOS/translate_data/.
echo "Translate: PC"
rsync -avz db_* ${MACHINE}:~/www/N1-TEST/PC/translate_data/.
echo "Translate: WebGL"
rsync -avz db_* ${MACHINE}:~/www/N1-TEST/WebGL/translate_data/.

echo "============"
