~ubuntu-branches/ubuntu/intrepid/update-manager/intrepid

« back to all changes in this revision

Viewing changes to DistUpgrade/build-dist.sh~.moved

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2006-04-20 18:23:54 UTC
  • Revision ID: james.westby@ubuntu.com-20060420182354-mbpnqmq3owrrvvwu
Tags: 0.42.2ubuntu13
* po/POTFILES.in: add missing desktop file (ubuntu: #39410)
* UpdateManager/UpdateManager.py: 
  - fix in the get_changelog logic (ubuntu: #40058)
  - correct a error in the changelog parser (ubuntu: #40060)
  - fix download size reporting (ubuntu: #39579)
* debian/rules: added dh_iconcache
* setup.py: install the icons into the hicolor icon schema
  (thanks to Sebastian Heinlein)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# build a tarball that is ready for the upload. the format is 
 
4
# simple, it contans:
 
5
#   $version/$dist.tar.gz 
 
6
#   $version/ReleaseNotes 
 
7
# this put into a file called "$dist-upgrader_$version.tar.gz"       
 
8
 
 
9
 
 
10
TARGETDIR=../dist-upgrade-build
 
11
SOURCEDIR=`pwd`
 
12
DIST=dapper
 
13
MAINTAINER="Michael Vogt <michael.vogt@ubuntu.com>"
 
14
NOTES=ReleaseAnouncement
 
15
version=$(date +%Y%m%d.%H%M)
 
16
 
 
17
# create targetdir
 
18
if [ ! -d $TARGETDIR/$version ]; then
 
19
        mkdir -p $TARGETDIR/$version
 
20
fi
 
21
 
 
22
#build the actual dist-upgrader tarball
 
23
./build-tarball.sh
 
24
 
 
25
# how move it into a container including the targetdir (with version)
 
26
# and ReleaeNotes
 
27
cd $TARGETDIR/$version
 
28
cp $SOURCEDIR/$NOTES .
 
29
cp $SOURCEDIR/$DIST.tar.gz .
 
30
cd ..
 
31
 
 
32
# build it
 
33
TARBALL="dist-upgrader_"$version"_all.tar.gz"
 
34
tar czvf $TARBALL $version
 
35
 
 
36
# now create a changes file
 
37
CHANGES="dist-upgrader_"$version"_all.changes"
 
38
echo > $CHANGES
 
39
echo "Origin: Ubuntu/$DIST" >> $CHANGES 
 
40
echo "Format: 1.7" >> $CHANGES
 
41
echo "Date: `date -R`" >> $CHANGES
 
42
echo "Architecture: all">>$CHANGES
 
43
echo "Version: $version" >>$CHANGES
 
44
echo "Distribution: $DIST"  >>$CHANGES
 
45
echo "Source: dist-upgrader" >> $CHANGES
 
46
echo "Binary: dist-upgrader" >> $CHANGES
 
47
echo "Urgency: low" >> $CHANGES
 
48
echo "Maintainer: $MAINTAINER" >> $CHANGES
 
49
echo "Changed-By: $MAINTAINER" >> $CHANGES
 
50
echo "Changes: "  >> $CHANGES
 
51
echo " * new upstream version"  >> $CHANGES 
 
52
echo "Files: " >> $CHANGES
 
53
echo " `md5sum $TARBALL | awk '{print $1}'` `stat --format=%s $TARBALL` raw-dist-upgrader - $TARBALL" >> $CHANGES