#!/bin/bash # Script to retrieve data from the repository. # Make the .bnp . # Ready the patch server. # Next patch generation #-------------------------------------------------------------# # Retrieve the latest data repository in the right directory: # #-------------------------------------------------------------# cd ~/patch_service/khanat-data-client git pull #----------------------------# # Go to the patch directory: # #----------------------------# cd ~/patch_service #--------------------------# # Copy the recovered data: # #--------------------------# for folder in ~/patch_service/khanat-data-client/data/ do cp -R $folder/fontspatch_lirria/ done for folder in ~/patch_service/khanat-data-client/data/ do cp -R $folder/kh/* patch_lirria/ done for folder in ~/patch_service/khanat-data-client/data/ do cp -R $folder/ryz/* patch_lirria/ done #--------------------------------------------------------------------# # Generate the patch_"lirria.bnp" and move it to the right location: # #--------------------------------------------------------------------# for i in patch_lirria/* ; do bnp_make -p $i ; done #rm ~/patch_service/patch_game/bnp/ for folder in ~/patch_service do cp $folder/patch_lirria/*.bnp ~/patch_service/patch_game/bnp/ done #----------------------------------------------# # Cleaning up the temporary transit directory: # #----------------------------------------------# rm -Rf patch_lirria/* #-----------------------------------------# # Going back to "root" of home directory: # #-----------------------------------------# cd ~