Skip to content

Instantly share code, notes, and snippets.

@tdebarochez
Created April 16, 2011 08:36
Show Gist options
  • Save tdebarochez/922978 to your computer and use it in GitHub Desktop.
Save tdebarochez/922978 to your computer and use it in GitHub Desktop.
I use this script to automatically update my rendered Minecraft map with pigmap
#!/bin/bash
if [ -f pigmap/output/pigmap.params ]
then
find world/region/ -newer pigmap/output/pigmap.params > changes.txt
date >> error_log && ./pigmap/pigmap -i world/ -o pigmap/output/ -g pigmap/images -r changes.txt -h 3 >> error_log && date >> error_log
else
date >> error_log && ./pigmap/pigmap -B 6 -T 1 -Z 10 -i world/ -o pigmap/output/ -g pigmap/images -r changes.txt -h 3 >> error_log && date >> error_log
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment