~ubuntu-branches/ubuntu/utopic/oxref/utopic-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): tony mancill, Frank Brokken, tony mancill
  • Date: 2013-12-26 10:18:21 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20131226101821-y829jwl6kvmpdqi2
Tags: 1.00.01-1
[ Frank Brokken ]
* Replaced FBB::Errno calls by FBB::Exception. See oxref's changelog. 
  (Closes: #730892)
* Removed now obsoleted git-build: target from debian/rules.
* Updated several Build-Depends versions and updated Standard-Version

[ tony mancill ]
* Bump d/compat and debhelper dependency to 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# Uncomment this to turn on verbose mode.
5
5
# export DH_VERBOSE=1
6
6
 
 
7
# The following is for internal development usage only
 
8
# Update that sum when new _upstream_ releases occur, this
 
9
# catches silent file content forges at the upstream server side
 
10
 
 
11
# Archive downloaded from https://www.icce.rug.nl/debian/oxref
 
12
#   file: oxref_x.y.z.tar.gz
 
13
 
 
14
MD5TRUSTED := 7b8d4eebfceafa6cf161a5319000969c
 
15
 
7
16
export CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
8
17
export LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
9
18
export CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS)
 
19
export CXX = g++-4.8
10
20
CXXFLAGS += --std=c++0x -Wall 
11
 
CXX = g++-4.7
12
21
 
13
22
build: build-indep build-arch
14
23
build-indep:
30
39
install: build
31
40
        dh_testdir
32
41
        dh_testroot
33
 
        dh_clean -k
 
42
        dh_prep
34
43
        dh_installdirs
35
44
 
36
45
        # Add here commands to install the package into debian/bisonc++.
58
67
        dh_builddeb
59
68
 
60
69
 
61
 
# The following is for internal development usage only
62
 
# Update that sum when new _upstream_ releases occur, this
63
 
# catches silent file content forges at the upstream server side
64
 
# Archive downloaded from https://www.icce.rug.nl/debian/oxref
65
 
#   file: oxref_x.y.z.tar.gz
66
 
 
67
 
MD5TRUSTED := b990cc5a04c269688ea5ed33bef90149
68
 
 
69
70
DEBVERSION:=$(shell head -n 1 debian/changelog | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
70
71
UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//')
71
72
UPNAME := oxref
93
94
        echo "Upstream filename md5sum is trusted!" ; \
94
95
        fi
95
96
 
96
 
# call git-build from the project's base directory as `fakeroot debian/rules git-build'
97
 
# it creates  ../${UPNAME}-build and runs dpkg-buildpackage in ../${UPNAME}-build/$(UPNAME)-$(UPVERSION)
98
 
# which, if successful, creates the debian files in ${UPNAME}-build
99
 
# Probably easier to use is `git-bl'
100
 
 
101
 
debian-area = $(shell pwd)
102
 
build-base  = ../$(UPNAME)-build
103
 
build-area  = $(UPNAME)-$(UPVERSION)
104
 
tarball     = ../tarballs/$(DEFILE) 
105
 
garbage     = ../$(UPNAME)-build/$(UPNAME)-$(UPVERSION) ../$(UPNAME)-build/run.lintian
106
 
 
107
 
git-build:
108
 
        @@[ -d $(build-base)/. ] || mkdir -p $(build-base)
109
 
    
110
 
        -@if [ ! -f $(tarball) ] ; then \
111
 
            echo "Upstream source tarball $(tarball) not found" ; \
112
 
        else \
113
 
            rm -rf $(garbage) ; \
114
 
            cp $(tarball) $(build-base) ; \
115
 
            chdir $(build-base) ; \
116
 
            tar xzf $(DEFILE) ; \
117
 
            chdir $(build-area) ; \
118
 
            cp -r $(debian-area)/debian ./ ; \
119
 
            dpkg-buildpackage $(DPKG_BUILDPACKAGE) ; \
120
 
            if [ "$$?" -eq 0 ] ; then \
121
 
                chdir .. ; \
122
 
                touch run.lintian ; \
123
 
                rm -rf $(build-area) ; \
124
 
            else \
125
 
                chdir .. ; \
126
 
                mv $(build-area) $(build-area)-obsolete-`date +%s` ; \
127
 
            fi \
128
 
        fi
129
 
 
130
97
print-version:
131
98
        @@echo "Debian version:  $(DEBVERSION)"
132
99
        @@echo "Upstream version: $(UPVERSION)"