25 lines
715 B
Bash
Raw Normal View History

2016-10-22 19:28:22 +02:00
#! /bin/bash
rm .directory;
# update files on github
git status;
git add *
2017-01-19 16:04:44 +01:00
git commit -m "update textures";
2016-10-22 19:28:22 +02:00
git push;
# create work directory
echo "copying files to a tmp directory ...";
cp ../minetest-texturepack-nature-test-master/ /tmp/minetest-texturepack-nature-test-master -rf &&
echo "finished [ok]";
# optimizing images
echo "compressing with optipng, output as zip";
cd /tmp;
optipng minetest-texturepack-nature-test-master/* &&
rm /home/mbb/minetest/nature-test-master.zip;
zip -r ~/minetest/nature-test-master.zip minetest-texturepack-nature-test-master/*;
sync;
rm -rf /tmp/minetest-texturepack-nature-test-master
echo "now your pack is compressed! What about uploading it to the minetest forums?"