#!/bin/sh
rm -rf ollama
mkdir ollama
cd ollama
export GOPATH=`pwd`
git clone --depth 1 https://github.com/ollama/ollama $GOPATH/src/github.com/ollama/ollama
( cd $GOPATH/src/github.com/ollama/ollama
  git submodule init
  git submodule update
  go get -v -d
)
cd ..
tar cf - ollama | xz -9 >ollama-`date '+%Y%m%d'`.tar.xz
rm -rf ollama
