Created
August 23, 2011 08:37
-
-
Save brianherbert/1164667 to your computer and use it in GitHub Desktop.
bash script to update localization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
cd /dir_to/Ushahidi-Localizations/ | |
/usr/bin/git pull origin master | |
cd /dir_to/Ushahidi-Localizations.wiki/ | |
/usr/bin/git pull origin master | |
/usr/bin/php /dir_to/Ushahidi-Localizations.updater/update.php | |
cd /dir_to/Ushahidi-Localizations.wiki/ | |
/usr/bin/git commit -a -m 'auto completeness update' | |
/usr/bin/git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
update.php compares strings in Ushahidi-Localizations with the English strings in the same directory to come up with % complete, then updates the Completeness.md wiki file in Ushahidi-Localizations.wiki and pushes it.