Created
February 2, 2012 10:23
-
-
Save fanf/1722784 to your computer and use it in GitHub Desktop.
A script to update all git master for Rudder Scala projects
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/zsh | |
# | |
# Save that file on the directory that contains all you Rudder projects. | |
# The script fetch all project's origin, checkout master and pull origin/master. | |
# Before using it, be sure to have commited all you modifications ! | |
# | |
#change base to the path to the | |
BASE="/path/to/the/root/rudder-project" | |
REPOS="rudder-parent-pom rudder-commons scala-ldap ldap-inventory cf-clerk rudder rudder-policy-templates rudder-doc" | |
for i in $(echo ${REPOS}) | |
do | |
P=${BASE}/${i} | |
echo "\e[0;32mUpdating ${P}\e[0m" | |
cd ${P} | |
git fetch | |
git checkout master | |
git pull origin master | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment