Last active
August 31, 2017 17:46
-
-
Save blake-newman/0c3c2eec4bd3cb3d538e5bd13900eba9 to your computer and use it in GitHub Desktop.
Create a gource.io of multiple repos
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 | |
ARRAY=( | |
"org:repo" | |
"org:repo" | |
"org:repo" | |
) | |
touch combined.txt | |
for item in "${ARRAY[@]}" ; do | |
ORG=${item%%:*} | |
REPO=${item#*:} | |
URL="https://github.com/$ORG/$REPO" | |
# git clone $URL | |
# cd $REPO && git fetch --all && git rebase && cd .. | |
gource --output-custom-log ./output.txt ./$REPO | |
sed -i -r "s#(.+)\|#\1|/$REPO#" ./output.txt | |
cat combined.txt output.txt > temp.txt && cat temp.txt > combined.txt | |
rm -f temp.txt output.txt | |
done | |
cat combined.txt | sort -n > output.txt | |
rm -f combined.txt | |
gource -1920x1080 --start-date 2014-01-01 00:00:01 +tz --stop-at-end --multi-sampling --highlight-users --auto-skip-seconds 1 --file-filter \.png --dir-colour 8b91a2 --highlight-colour ffffff --key --hide bloom,mouse,filenames,root --seconds-per-day 1 --dir-name-depth 1 -r 25 -o - output.txt | avconv -y -r 25 -f image2pipe -vcodec ppm -i - -b 65536K output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment