Linux multi-monitor fullscreen support
[ryzomcore.git] / nel / tools / 3d / build_gamedata / sh / client_clean.sh
blob08c9d97b82607e62a7deeab0518f181a2f59a9a1
1 #!/bin/bash
2 rm log.log 2> /dev/null
4 # Clean the client
6 # Get the client directory
7 client_directory=`cat cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
9 # Get the client setup directories
10 client_setup_directories=`cat cfg/directories.cfg | grep "client_setup_directory" | sed -e 's/client_setup_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
12 # Log error
13 echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* > log.log
14 echo \*\*\*\*\*\*\* CLIENT CLEAN>> log.log
15 echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* >> log.log
16 echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
17 echo \*\*\*\*\*\*\* CLIENT CLEAN
18 echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
20 # For each directory
21 for i in $client_setup_directories ; do
22 # Create the directory
23 rm $client_directory/$i/*
25 # Idle
26 ./idle.bat
27 done