File: mkrelease.sh

package info (click to toggle)
libaudclient 3.5~rc2-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 636 kB
  • ctags: 401
  • sloc: sh: 3,866; ansic: 521; xml: 256; makefile: 57
file content (27 lines) | stat: -rwxr-xr-x 578 bytes parent folder | download | duplicates (11)
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
#!/bin/sh

if ! test -d .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 .gitignore .hgignore aclocal.m4 autom4te.cache

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