Skip to content

Instantly share code, notes, and snippets.

@blake-newman
Last active August 31, 2017 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save blake-newman/0c3c2eec4bd3cb3d538e5bd13900eba9 to your computer and use it in GitHub Desktop.
Save blake-newman/0c3c2eec4bd3cb3d538e5bd13900eba9 to your computer and use it in GitHub Desktop.
Create a gource.io of multiple repos
#!/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