File: mkrelease.sh

package info (click to toggle)
audacious-plugins 4.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 16,244 kB
  • sloc: cpp: 114,632; sh: 4,049; makefile: 1,301; ansic: 608; objc: 447; xml: 44
file content (30 lines) | stat: -rwxr-xr-x 675 bytes parent folder | download | duplicates (2)
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
#!/bin/sh

if ! test -e .git
then
	echo This script must be run in a Git repository
	exit 1
fi

RELEASENAME=`git describe --tags`

if test -e $RELEASENAME
then
	echo $RELEASENAME already exists, not overwriting
	exit 1
fi

echo "Exporting HEAD to $RELEASENAME ..."
git archive --format=tar --prefix=$RELEASENAME/ HEAD | tar x || exit 1

echo "Running autoreconf ..."
cd $RELEASENAME || exit 1
autoreconf || exit 1
rm -rf .github .gitignore aclocal.m4 autom4te.cache

echo "Building $RELEASENAME.tar.bz2 ..."
cd .. || exit 1
tar cfj $RELEASENAME.tar.bz2 $RELEASENAME || exit 1

echo "Calculating checksum ..."
sha256sum $RELEASENAME.tar.bz2 > $RELEASENAME.sha256sum || exit 1