Created
March 14, 2012 00:08
-
-
Save alganet/2032857 to your computer and use it in GitHub Desktop.
curl -L http://git.io/gitrespect | bash
This file contains hidden or 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/bash | |
x=0; | |
repositories=( | |
"Cli" | |
"Config" | |
"Data" | |
"ed" | |
"Foundation" | |
"Framework" | |
"Http" | |
"Loader" | |
"pear" | |
"phar" | |
"project-info" | |
"Relational" | |
"Structural" | |
"Rest" | |
"respect.github.com" | |
"Template" | |
"Validation" | |
); | |
dir=$(pwd); | |
echo ${dir}; | |
while [ $x != ${#repositories[@]} ] | |
do | |
repository=${repositories[$x]}; | |
repository_folder="Respect/${repository}"; | |
echo -e "\033[1mWorking on ${repository_folder}\033[0m"; | |
if [ ! -d "${dir}/${repository_folder}" ]; then | |
mkdir -p "${dir}/${repository_folder}" | |
git clone "[email protected]:${repository_folder}" "$dir/${repository_folder}"; | |
fi | |
git --git-dir="$dir/${repository_folder}/.git" --work-tree="$dir/${repository_folder}" pull | |
git --git-dir="$dir/${repository_folder}/.git" --work-tree="$dir/${repository_folder}" status -s | |
let x=${x}+1; | |
done | |
cd $dir; | |
echo "Finished.\n\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Take a look https://gist.github.com/2371475