aboutsummaryrefslogtreecommitdiff
path: root/dist.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dist.sh')
-rwxr-xr-xdist.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/dist.sh b/dist.sh
new file mode 100755
index 0000000..c628b19
--- /dev/null
+++ b/dist.sh
@@ -0,0 +1,18 @@
1#!/usr/bin/sh
2
3if [ "$VERSION" = "" ]; then
4 echo "VERSION missing"
5 exit 1
6fi
7
8mkdir -p dist/
9cargo build --release --target-dir target/ || exit 1
10cp target/release/dotup .
11rpm-assembler \
12 --name dotup \
13 --version $VERSION \
14 --summary "Link dotfiles" \
15 --arch x86_64 \
16 --url https://git.d464.sh/code/dotup \
17 dotup:/usr/bin/dotup:0755 || exit 1
18mv dotup *.rpm dist/