Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
766 B
1
Indexable
Never
ProjectName='Project3042';
LevelName='world';
ServerIP='test.jerryio.com';
ServerLocation="ftps://UserB:TMJP3@$ServerIP/";
LocalWorldSaves='./saves/';
DistLocation='./dist/';
Version='1.2';

##########################################################

SrcOverworld="$LocalWorldSaves$ServerIP/$LevelName/";
SrcNether="$LocalWorldSaves$ServerIP/${LevelName}_nether/";
RemoteOverworld="$ServerLocation$LevelName/";
RemoteNether="$ServerLocation${LevelName}_nether/";
DistFolder="$DistLocation$ProjectName v$Version";
DistMapFolder="$DistFolder/$ProjectName World v$Version";

mkdir -p "$LocalWorldSaves";
mkdir -p "$DistMapFolder";

wget -r --no-parent "$RemoteOverworld";
wget -r --no-parent "$RemoteNether";

# cp read me;
cp -a "$SrcOverworld/data" "$DistMapFolder";