File: make_release.sh

package info (click to toggle)
tint2 16.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,968 kB
  • sloc: ansic: 30,681; python: 1,762; xml: 497; sh: 240; makefile: 17
file content (19 lines) | stat: -rwxr-xr-x 393 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

# Usage: ./make_release.sh
# Creates a tar.gz archive of the current tree.

VERSION=$(./get_version.sh --strict)
if [ ! $? -eq 0 ]
then
    echo >&2 "Error: get_version.sh failed!"
    exit 1
fi

ARCHIVE=tint2-$VERSION.tar.gz

echo "Making release tint2-$VERSION"
git archive --format=tar.gz --prefix=tint2-$VERSION/ v$VERSION >$ARCHIVE

sha1sum -b $ARCHIVE
sha256sum -b $ARCHIVE