Skip to content

Instantly share code, notes, and snippets.

@brianherbert
Created August 23, 2011 08:37
Show Gist options
  • Save brianherbert/1164667 to your computer and use it in GitHub Desktop.
Save brianherbert/1164667 to your computer and use it in GitHub Desktop.
bash script to update localization
#! /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
@brianherbert
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment