capturetheflag/setup_maps.sh

18 lines
527 B
Bash
Raw Normal View History

cd mods/ctf/ctf_map/maps/
# Copy textures from map sub-dirs to ctf_map/textures
for f in *; do
if [ -d ${f} ]; then
# Screenshot
cp ${f}/screenshot.png ../textures/${f}.png
# Skybox textures
cp ${f}/skybox_1.png ../textures/${f}_skybox_1.png
cp ${f}/skybox_2.png ../textures/${f}_skybox_2.png
cp ${f}/skybox_3.png ../textures/${f}_skybox_3.png
cp ${f}/skybox_4.png ../textures/${f}_skybox_4.png
cp ${f}/skybox_5.png ../textures/${f}_skybox_5.png
cp ${f}/skybox_6.png ../textures/${f}_skybox_6.png
fi
done