~robru/cordova-ubuntu/html5-theme-rename

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Tarmac
  • Author(s): David Barth
  • Date: 2013-10-08 13:43:37 UTC
  • mfrom: (244.1.4 cordova-ubuntu-2.8)
  • Revision ID: tarmac-20131008134337-yy8oc1u33mior29c
selectively disable certain APIs based on the target device architecture.

Approved by PS Jenkins bot, Maxim Ermilov.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
export DPKG_GENSYMBOLS_CHECK_LEVEL=4
7
7
export QT_SELECT=qt5
8
8
 
 
9
# help disable unsupported APIs per platform
 
10
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
11
 
 
12
override_dh_quilt_patch:
 
13
        dh_quilt_patch
 
14
        if test -r debian/patches/series.$(DEB_HOST_ARCH); then \
 
15
                pc=".pc.$(DEB_HOST_ARCH)"; \
 
16
                test -d "$(CURDIR)/$$pc" || mkdir "$(CURDIR)/$$pc"; \
 
17
                cp debian/patches/series.$(DEB_HOST_ARCH) $(CURDIR)/$$pc/series; \
 
18
                cd $(CURDIR); \
 
19
                QUILT_PC="$$pc" quilt upgrade || true; \
 
20
                QUILT_PC="$$pc" QUILT_PATCHES="debian/patches/" quilt push -a || true; \
 
21
        fi; \
 
22
 
 
23
override_dh_quilt_unpatch:
 
24
        if test -r debian/patches/series.$(DEB_HOST_ARCH); then \
 
25
                pc=".pc.$(DEB_HOST_ARCH)"; \
 
26
                cd $(CURDIR); \
 
27
                QUILT_PC="$$pc" QUILT_PATCHES="debian/patches/" quilt pop -a || true; \
 
28
        fi; \
 
29
        dh_quilt_unpatch
 
30
 
9
31
%:
10
32
        dh $@ --parallel
11
33