Skip to content

Instantly share code, notes, and snippets.

@fanf
Created February 2, 2012 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fanf/1722784 to your computer and use it in GitHub Desktop.
Save fanf/1722784 to your computer and use it in GitHub Desktop.
A script to update all git master for Rudder Scala projects
#!/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