File: autogen.sh

package info (click to toggle)
radeontool 1.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 2,064 kB
  • ctags: 7,197
  • sloc: ansic: 15,599; sh: 11,054; makefile: 48
file content (26 lines) | stat: -rwxr-xr-x 520 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
#!/bin/sh
# Generate debian/changelog.upstream.
#
# Uses debian/changelog and the git revision log.
set -e

generated_changelog_needs_update() {
	test -e debian/changelog.upstream || return 0

	read line < debian/changelog.upstream || return 0
	ver=${line#Version }
	test "$ver" != "" || return 0

	read line < debian/changelog || return 0
	rhs=${line#*(}
	deb_ver=${rhs%)*}
	new_ver=${deb_ver%-*}

	test "$ver" != "$new_ver"
}

if ! generated_changelog_needs_update
then
	exit 0
fi
exec sh debian/changelog.upstream.sh