Skip to content

Instantly share code, notes, and snippets.

@groovecoder
Created December 4, 2012 01:03
Show Gist options
  • Save groovecoder/4199571 to your computer and use it in GitHub Desktop.
Save groovecoder/4199571 to your computer and use it in GitHub Desktop.
build gource for directory
PWD=`pwd`
files=`ls`
for file in $files; do
if [ -d $file ]; then
cd $file
echo "git pull"
git pull
cd ..
echo "gource --output-custom-log $file.txt $file"
gource --output-custom-log $file.txt $file
echo "grab_avatars_for_git_users.pl"
cd $file
~/code/grab_avatars_for_git_users.pl
cp .git/avatar/* ../avatars/
cd ..
fi
done
files=`ls *.txt`
filenames=''
for file in $files; do
filenames="$filenames $file"
done
echo "Concatinating $filenames and sorting into tulsawebdevs.txt"
cat $filenames | sort -n > tulsawebdevs.txt
# gource -p .476 -s 1 -i 0 --key --user-image-dir avatars/ --highlight-users --user-scale 3 --logo ~/Pictures/twd_logo_128.png tulsawebdevs.txt
# gource --file-filter "/development-bundle/" -f 1440x900 -p .487 -s .3 -i 0 --key --user-image-dir avatars/ --highlight-users --user-scale 3 --logo ~/Pictures/twd_logo_128.png tulsawebdevs.txt -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -crf 1 -threads 0 -bf 0 tulsawebdevs.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment