File: prepare

package info (click to toggle)
scummvm 2.2.0%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 227,768 kB
  • sloc: cpp: 2,525,134; ansic: 144,108; asm: 28,422; sh: 9,109; python: 8,774; xml: 6,003; perl: 3,523; java: 1,547; makefile: 948; yacc: 720; lex: 437; javascript: 336; objc: 81; sed: 22; php: 1
file content (36 lines) | stat: -rw-r--r-- 1,026 bytes parent folder | download | duplicates (8)
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
#! /bin/sh

# This simple script is called from the upstream makefile whenever someone
# calls "make deb".  It adds a changelog entry to the top of debian/changelog
# so that the version number is correct.

VERSION=`sed -n -e 's/CVS//g' -e 's/^const char \*gScummVMVersion = "\(.*\)";/\1/p' base/main.cpp `-0cvs`date +%Y%m%d`
USERNAME=`whoami`
GECOS=`getent passwd $USERNAME | awk '-F[,:]' '{print $5}'`
DOMAIN=`hostname --fqdn`
DATE=`date -R`

head -1 debian/changelog | grep -qF $VERSION && exit 0

TMP=`tempfile`

cat debian/changelog > $TMP

cat << __eof > debian/changelog
scummvm ($VERSION) experimental; urgency=low

  * CVS snapshot.

    Builder:    $GECOS <$USERNAME@$DOMAIN>
    Build-date: $DATE

    Please don't file bugs you find in this package in the Debian Bug Tracking
    system, use the ScummVM team's own bug tracker instead.  You can find this
    tracker at <http://sourceforge.net/tracker/?group_id=37116>.

 -- David Weinehall <tao@debian.org>  $DATE 

__eof

cat $TMP >> debian/changelog
rm -f $TMP