Skip to content

Commit

Permalink
chore: add gource script
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Dec 27, 2023
1 parent 750dc17 commit d4f1239
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions scripts/gource
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#! /bin/bash

projects=("ash" "ash_phoenix" "ash_postgres" "ash_admin" "ash_json_api" "ash_graphql" "reactor"
"spark" "ash_csv" "ash_money" "ash_cubdb" "ash_blog" "ash_double_entry" "ash_paper_trail" "ash_sqlite"
"ash_archival" "ash_json_api_wrapper" "ash_oban" "ash_state_machine" "ash_authentication" "ash_authentication_phoenix")

cd ..

rm gource-*.txt
rm gource-*.txt-r

for project in "${projects[@]}"
do
gource --output-custom-log "gource-${project}-log.txt" "${project}"
sed -i'' -e "s#^\(.*\)|#\1|/${project}#" "gource-${project}-log.txt"
done

cat gource-*-log.txt | sort -n > gource-combined.txt

gource gource-combined.txt --time-scale 3 --auto-skip-seconds 1 -1280x720 --frameless --hide-root --seconds-per-day 1 --disable-auto-rotate --file-filter ".*\/assets\/vendor.*"

rm gource-*.txt

0 comments on commit d4f1239

Please sign in to comment.