File: unrelease.sh

package info (click to toggle)
gnome-shell-extension-tiling-assistant 39-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,376 kB
  • sloc: javascript: 5,497; xml: 263; sh: 103; makefile: 11
file content (32 lines) | stat: -rw-r--r-- 667 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash

# exit, if a command fails
set -e

# cd to repo dir
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
cd $SCRIPT_DIR/../

METADATA=tiling-assistant@leleat-on-github/metadata.json

# get version nr
VERSION_LINE=$(cat $METADATA | grep \"version\":)
# split after ":" and trim the spaces
VERSION_NR=$(echo $(echo $VERSION_LINE | cut -d ':' -f 2) | xargs)

# reset version bump commit
echo resetting version bump commit...
git reset --hard HEAD^
echo

# delete git tag
echo Deleting git tag...
git tag -d v$VERSION_NR
echo

# delete package zip
echo Deleting package zip...
rm -f tiling-assistant@leleat-on-github.shell-extension.zip
echo

echo Unrelease done.