File: generate-debian-directory

package info (click to toggle)
syslog-ng 4.8.1-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 20,440 kB
  • sloc: ansic: 177,631; python: 13,035; cpp: 11,611; makefile: 7,011; sh: 5,147; java: 3,651; xml: 3,344; yacc: 1,377; lex: 599; perl: 193; awk: 190; objc: 162
file content (18 lines) | stat: -rwxr-xr-x 721 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

. /dbld/functions.sh

MODE=$1

cp -r /source/packaging/debian .
if [ $MODE = "snapshot" ]; then
	echo "Generating snapshot version in debian/"
	DEBEMAIL="dev@null" DEBFULLNAME="syslog-ng snapshot" debchange --force-bad-version --newversion ${VERSION}-${MODE}+`date +%Y%m%dT%H%M%S` "Snapshot release based on ${GITREF}"
elif [ $MODE = "release" ]; then
	echo "Validating if your debian/ directory matches current version"
	DEB_VERSION=`dpkg-parsechangelog -S Version | cut -d - -f1`
	if [ "${DEB_VERSION}" != "${VERSION}" ]; then
		echo "The version numbers in debian/changelog do not match the current version number. Cannot generate a release tarball this way: ${DEB_VERSION} != ${VERSION}"
		exit 1
	fi
fi