diff --git a/.gitignore b/.gitignore index 53e2fed..8f7588e 100644 --- a/.gitignore +++ b/.gitignore @@ -19,5 +19,11 @@ prime snap stage *.snap + +# bfg +bfg.jar *bfg-report* *bfg-report + +# builds +build diff --git a/Makefile b/Makefile index 9247e60..c0f83ad 100644 --- a/Makefile +++ b/Makefile @@ -49,3 +49,12 @@ brew/build: brew/remove brew/audit: brew audit --strict cointop.rb + +git/rm/large: + java -jar bfg.jar --strip-blobs-bigger-than 200K . + +git/repack: + git reflog expire --expire=now --all + git fsck --full --unreachable + git repack -A -d + git gc --aggressive --prune=now diff --git a/bin/macos/cointop b/bin/macos/cointop deleted file mode 100755 index d85e01e..0000000 Binary files a/bin/macos/cointop and /dev/null differ diff --git a/cointop.rb b/cointop.rb index 6f9de7d..eb279b4 100644 --- a/cointop.rb +++ b/cointop.rb @@ -9,12 +9,11 @@ class Cointop < Formula def install ENV["GOPATH"] = buildpath - path = buildpath/"src/github.com/miguelmota" - #system "go", "get", "-u", "github.com/miguelmota/cointop" + mkdir "#{buildpath}/src/github.com/miguelmota/cointop" + path = buildpath/"src/github.com/miguelmota/cointop" cd path do - system "git", "clone", "https://github.com/miguelmota/cointop.git" - system "mv", "bin/macos/cointop", "#{bin}/cointop" - #system "go", "build", "-o", "#{bin}/cointop" + system "git", "clone", "https://github.com/miguelmota/cointop.git", "." + system "go", "build", "-o", "#{bin}/cointop" end end