use better naming conventions - src directory and scripts

master
poikilos 2019-04-10 10:24:46 -04:00
parent 8b92ab0d05
commit 646219bca1
9 changed files with 94 additions and 0 deletions

View File

@ -0,0 +1,69 @@
#!/bin/bash
customDie() {
echo
echo
echo "ERROR:"
echo "$1"
echo
exit 1
}
if [ ! -d ../models ]; then
customDie "ERROR: Nothing done since no ../models"
fi
if [ ! -d ../textures ]; then
customDie "ERROR: Nothing done since no ../textures"
fi
pushd ..
if [ -d /tmp/codermobs ]; then
rm -Rf /tmp/codermobs || customDie "Cannot remove old /tmp/codermobs"
fi
mkdir /tmp/codermobs
# cp init.lua /tmp/codermobs/bird.lua || customDie "Cannot copy init.lua to /tmp/codermobs"
cp -R src /tmp/codermobs/
mkdir /tmp/codermobs/models
mkdir /tmp/codermobs/textures
pushd models || customDie "Cannot cd models"
cp mobs_birds_gull.b3d "/tmp/codermobs/models/codermobs_gull.b3d"
cp mobs_birds_thrush.b3d "/tmp/codermobs/models/codermobs_thrush.b3d"
popd
pushd textures || customDie "Cannot cd textures"
cp animal_gull_mesh.png "/tmp/codermobs/textures/codermobs_gull_white.png"
cp gull_black.png "/tmp/codermobs/textures/codermobs_gull_black.png"
cp gull_gray.png "/tmp/codermobs/textures/codermobs_gull_gray.png"
cp gull_grayblue.png "/tmp/codermobs/textures/codermobs_gull_bluegray.png"
cp bird_blueish.png "/tmp/codermobs/textures/codermobs_bird_blue.png"
cp bird_brown.png "/tmp/codermobs/textures/codermobs_bird_brown.png"
cp bird_gray.png "/tmp/codermobs/textures/codermobs_bird_gray.png"
cp bird_grayblue.png "/tmp/codermobs/textures/codermobs_bird_bluegray.png"
cp bird_red.png "/tmp/codermobs/textures/codermobs_bird_red.png"
cp bird_redish.png "/tmp/codermobs/textures/codermobs_bird_redish.png"
popd
#cd ../models
#mv mobs_birds_thrush.b3d codermobs_thrush.b3d
#mv mobs_birds_gull.b3d codermobs_gull.b3d
#cd ../textures
#mv mobs_birds_bird_blue.png codermobs_bird_blue.png
#mv mobs_birds_bird_brown.png codermobs_bird_brown.png
#mv mobs_birds_bird_gray.png codermobs_bird_gray.png
#mv mobs_birds_bird_bluegray.png codermobs_bird_bluegray.png
#mv mobs_birds_bird_red.png codermobs_bird_red.png
#mv mobs_birds_bird_redish.png codermobs_bird_redish.png
#mv mobs_birds_gull_white.png codermobs_gull_white.png
#mv mobs_birds_gull_black.png codermobs_gull_black.png
#mv mobs_birds_gull_gray.png codermobs_gull_gray.png
#mv mobs_birds_gull_bluegray.png codermobs_gull_bluegray.png
echo "Now manually run:"
echo "diff \$my_bucket_game/mods/codermobs/codermobs /tmp/codermobs"
echo
echo "#or"
echo
echo "meld \$my_bucket_game/mods/codermobs/codermobs /tmp/codermobs"
echo "# * then turn off 'Same' and 'New' buttons, making sure 'Modified' is on."

View File

@ -0,0 +1,25 @@
if [ ! -d ../models ]; then
echo "no ../models"
exit 1
fi
if [ ! -d ../textures ]; then
echo "no ../textures"
exit 1
fi
cd ../models
# mv mobs_birds_thrush.b3d mobs_birds_thrush.b3d
mv animal_gull.b3d mobs_birds_gull.b3d
cd ../textures
mv bird_blueish.png mobs_birds_bird_blue.png # note naming pattern change
mv bird_brown.png mobs_birds_bird_brown.png
mv bird_gray.png mobs_birds_bird_gray.png
mv bird_grayblue.png mobs_birds_bird_bluegray.png # note naming pattern change
mv bird_red.png mobs_birds_bird_red.png
mv bird_redish.png mobs_birds_bird_redish.png
mv animal_gull_mesh.png mobs_birds_gull_white.png # note naming pattern change
mv gull_black.png mobs_birds_gull_black.png
mv gull_gray.png mobs_birds_gull_gray.png
mv gull_grayblue.png mobs_birds_gull_bluegray.png # note naming pattern change
# rm ../etc/gull-oldUVLayout.blend
# mv ../uvtest-64x64.png $HOME/ownCloud/Resources/Pictures/Maps/

View File

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB