My favorites | Sign in
Project Home Downloads Source
Checkout   Browse   Changes    
 
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
40
41
42
43
44
45
46
47
48
49
#!/bin/sh

# This script takes some predefined variables and creates .dsc packages

# which version to build
VERSION="$(echo $SRC | sed 's/.*upp-x11-src-\([0-9]*\)[.]tar[.]gz/\1/')"

# copy resources
tmp="$TMP/upp-$VERSION"
mkdir -p "$tmp"
cp -r "$RES_DIR/debian" "$tmp/debian"
for f in Makefile mkfile copyright theide.1 umk.1 theide.desktop; do
cp "$RES_DIR/$f" "$tmp/$f"
done

# link the original tarball
ln -s "$SRC" "$TMP/upp_$VERSION.orig.tar.gz"

# unpack the original tarball
tar -xzf "$TMP/upp_$VERSION.orig.tar.gz" -C "$tmp"
mv "$tmp/upp-x11-src-$VERSION"/{bazaar,examples,reference,tutorial,uppsrc} "$tmp/"
rm -r "$tmp/upp-x11-src-$VERSION"

# fix version.h
echo '#define IDE_VERSION "'$VERSION'"' > "$tmp/uppsrc/ide/version.h"

# tweak watch file, if we build stable release
[ "$STABLE" = "yes" ] && sed -i '/ultimatepp.org/s/^/#/;/sf.net/s/^#//;' "$tmp/debian/watch"

workdir="$(pwd)"
cd "$tmp"

for dist in $DISTS; do
# create changelog
cat > "debian/changelog" << EOF
upp (${VERSION}-${BUILD}~${dist}0) $dist; urgency=low

* Updated to SVN VERSION $VERSION
* See http://www.ultimatepp.org/redmine/projects/upp/repository for complete
and detailed list of changes.

-- $MAINTAINER `date -R`
EOF
# build source packages
dpkg-buildpackage -S $BUILDPKGOPTS -m"$MAINTAINER" $skiporig
skiporig="-sd"
done

cd "$workdir"

Change log

r4741 by dolik on Apr 3, 2012   Diff
.lpbuild2: debug packages, various fixes
and improvements
Go to: 
Project members, sign in to write a code review

Older revisions

r4711 by dolik on Mar 21, 2012   Diff
.lpbuild2: missing maintainer fix
r4581 by dolik on Feb 13, 2012   Diff
.lpbuild2: packaging improvements (RM
#244)
r4499 by dolik on Jan 30, 2012   Diff
.lpbuild2: packaging development (#RM
244)
All revisions of this file

File info

Size: 1366 bytes, 49 lines

File properties

svn:eol-style
native
Powered by Google Project Hosting