File: buildsnap

package info (click to toggle)
bzflag 2.0.8.20060605
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 29,168 kB
  • ctags: 33,169
  • sloc: cpp: 132,719; ansic: 14,122; sh: 13,441; makefile: 2,330; php: 428; python: 334; perl: 287; objc: 243; xml: 180
file content (39 lines) | stat: -rwxr-xr-x 1,563 bytes parent folder | download
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
37
38
39
#!/bin/sh
# build release or cvs snapshop debian packages
if [ -z "$1" -o ! -r configure.ac ] ; then
 echo "$0 { cvs | release } - must be run in the project home directory"
 exit 1
fi
if [ "$1" == "release" ] ; then
 if [ ! -r debian/changelog ] ; then
   echo "You must create debian/changelog to do a release"
   exit 1
 fi
 version=`head -n 1 debian/changelog | sed -e 's/.*(//' -e 's/).*//'`
else
 MAJOR_VERSION=`sed -e 's/#.*define.*BZ_MAJOR_VERSION[^0-9]*\(.*\)/\1/' -e t -e d < src/date/buildDate.cxx`
 MINOR_VERSION=`sed -e 's/#.*define.*BZ_MINOR_VERSION[^0-9]*\(.*\)/\1/' -e t -e d < src/date/buildDate.cxx`
 REV=`sed -e 's/#.*define.*BZ_REV[^0-9]*\(.*\)/\1/' -e t -e d < src/date/buildDate.cxx`
 PKGVER=1
 date=`date -u --rfc-822`
 version=${MAJOR_VERSION}.${MINOR_VERSION}.${REV}.`date -u +%Y%m%d`-$PKGVER
 sed -e "s/@VERSION@/$version/g" -e "s/@DATE@/$date/g" < debian/changelog.in > debian/changelog
fi
echo "Starting on $date to build:"
arch=$(dpkg-architecture -qDEB_HOST_ARCH)
echo "../bzflag_${version}.${arch}.deb"
echo "../bzflag-server_${version}_${arch}.deb"
echo -n "debian/changelog entry: "
head -n 1 debian/changelog
#./autogen.sh
#./configure
#make maintainer-clean
./autogen.sh
./configure --quiet
chmod +x debian/rules misc/tar
# cvs/non-cvs builds should conflict and replace each other.
PATH=`pwd`/misc:$PATH dpkg-buildpackage -us -uc -rfakeroot
echo "now do \"debsign\" and then a \"dupload ../bzflag_${version}_${arch}.changes\""
if [ "$1" == "release" ] ; then
 echo "don't forget to copy new changelog entry to changelog.in"
fi