Add branch updater script

This commit is contained in:
eyedeekay 2023-11-26 12:02:29 -05:00
parent e247f04633
commit d7e4b1b60b

View file

@ -2,10 +2,25 @@
#
# This is because matrix-org doesn't allow anonymous contributors.
# You can run it as a curlpipe if you're brave.
#
if [ "$(pwd)" != "$HOME/go/src/github.com/matrix-org/dendrite" ]; then
if [ ! -d "$HOME/go/src/github.com/matrix-org/dendrite" ]; then
git clone https://github.com/matrix-org/dendrite
cd "$HOME/go/src/github.com/matrix-org/dendrite"
git remote add idk https://github.com/eyedeekay/dendrite
git pull idk i2p-demo
fi
cd "$HOME/go/src/github.com/matrix-org/dendrite"
git checkout i2p-demo
fi
echo "Pulling in changes from matrix-org main"
git pull origin main
echo "Pulling in changes from eyedeekay i2p-demo"
git pull idk i2p-demo
echo "Generating binary"
go build -o bin/dendrite-demo-i2p ./cmd/dendrite-demo-i2p