From 7f41e21135a42e3cf408ba52461f0e508a018166 Mon Sep 17 00:00:00 2001 From: Jiri Kalvoda Date: Mon, 26 Sep 2022 16:21:30 +0200 Subject: [PATCH] =?UTF-8?q?Strategick=C3=A1:=20Skript=20na=20update=20serv?= =?UTF-8?q?eru=20(nov=C3=BD=20commit=20do=20sd=C3=ADlen=C3=A9ho=20gitu)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/bin/update | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 server/bin/update diff --git a/server/bin/update b/server/bin/update new file mode 100755 index 0000000..af33888 --- /dev/null +++ b/server/bin/update @@ -0,0 +1,27 @@ +#!/bin/bash + +set -ueo pipefail + + +mkdir -p static/client + +cp ../klient/client.py static/client +cp ../klient/strategy.py static/client +cp ../klient/strategy.cpp static/client +cp ../klient/jsmn.h static/client + +( + cd static/client + zip ../client.zip * +) + +( + cd static/client + git add . + git commit -m "BUGFIX" + git update-server-info +) +unlink static/client.git +ln -sr static/client/.git static/client.git + +pandoc ../pravidla.md --to=pdf -o static/pravidla.pdf