~ubuntu-branches/ubuntu/raring/codeblocks/raring-proposed

« back to all changes in this revision

Viewing changes to update_revision.sh

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-08-09 04:38:38 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100809043838-a59ygguym4eg0jgw
Tags: 10.05-0ubuntu1
* New upstream release. Closes (LP: #322350)
 - Switch to dpkg-source 3.0 (quilt) format
 - Remove unneeded README.source
 - Add debian/get-source-orig script that removes all
   Windows prebuilt binaries
* Bump Standards-Version to 3.9.1
 - Stop shipping *.la files
* debian/control
 - Add cdbs package as Build-Depend
 - Add libbz2-dev and zlib1g-dev packages as
   Build-Depends (needed by libhelp_plugin.so)
 - Remove dpatch package of Build-Depends
 - Add codeblocks-contrib-debug package
 - Split architecture-independent files of codeblocks
   package in codeblocks-common package
* debian/rules
 - Switch to CDBS rules system
 - Add parallel build support
 - Add a call to debian/get-source-orig script
 - Use lzma compression (saves 23,5 MB of free space)
* debian/patches
 - Refresh 01_codeblocks_plugin_path
 - Add 02_no_Makefiles_in_debian_dir to remove any link
   in codeblocks build system to deleted Makefiles of debian directory
 - Drop 02_ftbfs_gcc44 and 03_ftbfs_glib221 (merged in upstream)
* debian/watch
 - Update to use the new host (berlios.de)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
REV_FILE=./revision.m4
4
 
 
5
 
# let's import OLD_REV (if there)
6
 
if [ -f ./.last_revision ]; then
7
 
        . ./.last_revision
8
 
else
9
 
        OLD_REV=0
10
 
fi
11
 
 
12
 
if svn --xml info >/dev/null 2>&1; then
13
 
        REV=`svn --xml info | tr -d '\r\n' | sed -e 's/.*<commit.*revision="\([0-9]*\)".*<\/commit>.*/\1/'`
14
 
        LCD=`svn --xml info | tr -d '\r\n' | sed -e 's/.*<commit.*<date>\([0-9\-]*\)\T\([0-9\:]*\)\..*<\/date>.*<\/commit>.*/\1 \2/'`
15
 
elif svn --version --quiet >/dev/null 2>&1; then
16
 
        REV=`svn info | grep "^Revision:" | cut -d" " -f2`
17
 
        LCD=`svn info | grep "^Last Changed Date:" | cut -d" " -f4,5`
18
 
else
19
 
        REV=0
20
 
        LCD=""
21
 
fi
22
 
 
23
 
if [ "x$REV" != "x$OLD_REV" -o ! -r $REV_FILE ]; then
24
 
        echo "m4_define([SVN_REV], $REV)" > $REV_FILE
25
 
        echo "m4_define([SVN_REVISION], 1.0svn$REV)" >> $REV_FILE
26
 
        echo "m4_define([SVN_DATE], $LCD)" >> $REV_FILE
27
 
 
28
 
        # Also change the revision number in debian/changelog for package versioning
29
 
        mv debian/changelog debian/changelog.tmp
30
 
        sed "1 s/(1.0svn[^-)]*/(1.0svn$REV/" < debian/changelog.tmp > debian/changelog
31
 
        rm debian/changelog.tmp
32
 
fi
33
 
 
34
 
echo "OLD_REV=$REV" > ./.last_revision
35
 
 
36
 
exit 0