Synchronization
If you plan to use Version-Updater script on many environments you may want to synchronize common files. In that case if you need to modify or fix them you need to do it only once in repo.
You may not want to synchronize common files in production environments, because you need stable versions there and doesn't want to download every unchecked update that was made.
You may store common files in your repo or take them directly from GitHub. The important thing is that your server has access to them.
To synchronize common files you can add crontab jobs that download fresh files from the web:
*/10 * * * * cd ~/version-updater/; wget -N --no-cache http://path_to_common_files/functions-tomcat.sh; chmod +x version-updater/functions-tomcat.sh
*/10 * * * * cd ~/version-updater/; wget -N --no-cache http://path_to_common_files/version-updater/readme.txt
*/10 * * * * cd ~/version-updater/; wget -N --no-cache http://path_to_common_files/version-updater/functions.sh; chmod +x functions.sh
*/10 * * * * cd ~; wget -N --no-cache http://path_to_common_files/version-updater/update-version-tomcat.sh; chmod +x update-version-tomcat.sh
*/10 * * * * cd ~; wget -N --no-cache http://path_to_common_files/version-updater/batch-update-versions-tomcat.sh; chmod +x batch-update-versions-tomcat.sh