~ubuntu-branches/ubuntu/precise/apt-xapian-index/precise-updates

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Enrico Zini
  • Date: 2009-07-15 11:44:24 UTC
  • mfrom: (5.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090715114424-0a1q0o8lld60z14d
Tags: 0.22
* Applied patch by Michael Vogt. Closes: #536857.
  - Run the weekly update with nice and ionice
  - Fix bug in --updates when it is selecting the wrong index

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
RELEASE_VERSION=$(shell head -1 debian/changelog | sed -re 's/[^(]+\(([^)]+)\).+/\1/')
6
6
RELEASE_PACKAGE=apt-xapian-index
 
7
SOURCE_VERSION=$(shell grep ^VERSION= update-apt-xapian-index | sed -re 's/^.+"([^"]+)".*/\1/')
7
8
 
8
9
build/apt-xapian-index::
9
10
        help2man --section=8 --no-info ./update-apt-xapian-index > update-apt-xapian-index.8
20
21
        rm -f update-apt-xapian-index.8
21
22
 
22
23
release: clean
23
 
        test -z "`git-ls-files -d -o -m -u -s`" || (echo "There are uncommitted changes"; /bin/false)
24
 
        test -z "`git diff --cached`" || (echo "There are uncommitted changes in the index"; /bin/false)
 
24
        test $(SOURCE_VERSION) == $(RELEASE_VERSION) || (echo "Version in source $(SOURCE_VERSION) is different than version in changelog $(RELEASE_VERSION)" >&2; /bin/false)
 
25
        test -z "`git-ls-files -d -o -m -u -s`" || (echo "There are uncommitted changes" >&2; /bin/false)
 
26
        test -z "`git diff --cached`" || (echo "There are uncommitted changes in the index" >&2; /bin/false)
25
27
        git archive --format=tar --prefix=$(RELEASE_PACKAGE)-$(RELEASE_VERSION)/ master | gzip -9 > ../$(RELEASE_PACKAGE)_$(RELEASE_VERSION).tar.gz
26
28
        dpkg-buildpackage -us -uc -S -I.git
27
29
        rm -f ../$(RELEASE_PACKAGE)_$(RELEASE_VERSION)_source.changes