File: release.sh

package info (click to toggle)
nfqueue-bindings 0.4-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 232 kB
  • sloc: ansic: 257; python: 211; perl: 183; makefile: 28; sh: 25
file content (39 lines) | stat: -rwxr-xr-x 668 bytes parent folder | download | duplicates (3)
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
33
34
35
36
37
38
39
#!/bin/sh

GIT_ROOT="git://git.inl.fr/git/nfqueue-bindings"
GIT_TAG="origin"

set -e

VERSION=$(grep "^SET.VERSION" CMakeLists.txt | sed 's/.*"\([^"]\+\)".*/\1/')

cleanup()
{
  :
}


trap cleanup EXIT

TGZ="nfqueue-bindings-$VERSION.tar.gz"

git archive --format=tar --prefix="nfqueue-bindings-$VERSION/" "$GIT_TAG" | gzip -9 - > $TGZ

echo "Release file $TGZ is ok"
echo -n "$TGZ: "
SIZE=$(stat -c "%s" $TGZ)
echo "$SIZE bytes"

echo -n "MD5 : "
SUM=$(md5sum $TGZ | cut -f 1 -d' ')
echo "$SUM"

echo -n "SHA1: "
SUM=$(sha1sum $TGZ | cut -f 1 -d' ')
echo "$SUM"

echo ""
echo "Don't forget to run:"
echo "git tag -s nfqueue-bindings-$VERSION"
echo "git push --tags"