#!/usr/bin/env bash ############################################################################### # # Copyright (C) 2009-2013 Nintendo. All rights reserved. # # These coded instructions, statements, and computer programs contain # proprietary information of Nintendo of America Inc. and/or Nintendo # Company Ltd., and are protected by Federal copyright law. They may # not be disclosed to third parties or copied or duplicated in any form, # in whole or in part, without the prior written consent of Nintendo. # ############################################################################### # Syncronize the session data directory from $CAFE_ROOT/data to $CAFE_DATA_DIR for PCFSServer if [ $SESSION_MANAGER -eq 1 ] then # Release any files in the DEST directory cafestop SYNCTOOL_SRC=`cygpath -w "$CAFE_ROOT/data"` SYNCTOOL_DEST=`cygpath -w "$CAFE_DATA_DIR"` SYNCTOOL_CFG=`cygpath -w "$CAFE_ROOT/system/bin/tool/synctool.data.xml"` SYNCTOOL_LOG=`cygpath -w "$CAFE_ROOT/${SESSION_PATH_PREFIX}sync.log"` echo "Syncronizing $SYNCTOOL_SRC ===> $SYNCTOOL_DEST..." synctool.exe -cfgxml "$SYNCTOOL_CFG" "$SYNCTOOL_SRC" "$SYNCTOOL_DEST" > "$SYNCTOOL_LOG" 2>&1 SYNCTOOL_RVAL=$? if [ $SYNCTOOL_RVAL -ne 0 ] then # Alert user to the failure and to the log file echo " Session data sync FAILED with exit code $SYNCTOOL_RVAL!" echo " See $SYNCTOOL_LOG for details." else echo " Session data sync log at $SYNCTOOL_LOG" #rm -f "$SYNCTOOL_LOG" fi fi