From bb3647ff8df4e1ab8aa913ce5969a2297c32e6cb Mon Sep 17 00:00:00 2001
From: patrick96
Date: Tue, 22 Sep 2020 17:44:57 +0200
Subject: [PATCH] Add script to create release archives
---
.gitignore | 2 ++
common/release-archive.sh | 59 +++++++++++++++++++++++++++++++++++++++
2 files changed, 61 insertions(+)
create mode 100755 common/release-archive.sh
diff --git a/.gitignore b/.gitignore
index acd8ed52..f6db60c3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,5 @@
*.swp
*.tmp
.tags
+
+polybar-*.tar
diff --git a/common/release-archive.sh b/common/release-archive.sh
new file mode 100755
index 00000000..222dc570
--- /dev/null
+++ b/common/release-archive.sh
@@ -0,0 +1,59 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+
+git_url="https://github.com/polybar/polybar.git"
+wd="$(realpath .)"
+
+usage() {
+ cat </dev/null
+
+find . -type d -name ".git" -exec rm -rf {} \+
+
+cd "$tmp_dir"
+tar cf "$archive" "polybar"
+sha256sum "$archive"