~ubuntu-branches/ubuntu/quantal/kde-l10n-cs/quantal-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-18 13:16:36 UTC
  • mfrom: (1.12.15)
  • Revision ID: package-import@ubuntu.com-20120618131636-1x200lfbxmj029uz
Tags: 4:4.8.90-0ubuntu1
New upstream beta release

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
################################################################################
10
10
################################################################################
11
11
 
12
 
# ++ Setup && Error Handling ++ #
13
 
ifeq ($(shell basename `pwd`),debian)
14
 
$(error E: This must not be run from debian/)
15
 
else
16
 
        include ./debian/config
17
 
        ifndef SVNREV
18
 
                ERROR_CONFIG_MISSING_NAME = "SVNREV"
19
 
        else ifndef TYPE
20
 
                ERROR_CONFIG_MISSING_NAME = "TYPE"
21
 
        endif
22
 
        ifdef ERROR_CONFIG_MISSING_NAME
23
 
$(error E: Config value for field $(ERROR_CONFIG_MISSING_NAME) missing)
24
 
        endif
25
 
endif
26
 
 
27
 
ifeq ($(TYPE),stable)
28
 
        export SVNURL=svn://anonsvn.kde.org/home/kde/branches/stable/l10n-kde4
29
 
else
30
 
        ifeq ($(TYPE),unstable)
31
 
                export SVNURL=svn://anonsvn.kde.org/home/kde/trunk/l10n-kde4
32
 
        else
33
 
$(error E: Value of SVNURL unknown (must be stable or unstable))
34
 
        endif
35
 
endif
36
 
 
37
 
# ++ L10n Fetching ++ #
38
 
# ++++ App L10n ++++ #
39
 
 
40
 
get-messages:
41
 
 
42
 
# ++++ Desktop Files ++++ #
43
 
get-desktop-sc:
44
 
        # Fetch all and any desktop file pos for KDE core modules from stable
45
 
        rev="-r${SVNREV}"; \
46
 
        cd messages; \
47
 
                for module in *; do \
48
 
                        args="$${rev} $(SVNURL)/cs/messages/$${module}"; \
49
 
                        if cd $${module} 2> /dev/null ; then \
50
 
                                for file in `svn ls $${args}/ | grep "desktop_.*\.po"` ; do \
51
 
                                        svn export $${args}/$${file}; \
52
 
                                done; \
53
 
                                cd ..; \
54
 
                        fi; \
55
 
                done; \
56
 
        cd ../..;
57
 
 
58
 
get-desktop-extragear:
59
 
        # Fetch playground and extragear desktop file pos as per list from pkg-kde-tools
60
 
        cd messages/kdelibs; \
61
 
                for file in `cat /usr/lib/kubuntu-desktop-i18n/desktop-template-list`; do \
62
 
                        svn export -r${SVNREV} svn://anonsvn.kde.org/home/kde/trunk/l10n-kde4/cs/messages/$${file}.po; \
63
 
                done; \
64
 
        cd ../..;
65
 
 
66
 
get-desktop: get-desktop-sc get-desktop-extragear
67
 
 
68
 
# ++++ Meta ++++ #
69
 
get-l10n: $(ERROR) get-messages get-desktop
70
 
 
71
 
# L10n
72
 
.PHONY: get-l10n
73
 
# Messages
74
 
.PHONY: get-messages
75
 
# Desktop files
76
 
.PHONY: get-desktop get-desktop-sc get-desktop-extragear
77
 
 
78
 
# ++ Build Rules ++ #
79
12
%:
80
13
        dh $@ --with kde
81
14
 
82
15
override_dh_install:
83
16
        dh_install -i
84
 
        rm -f debian/kde-l10n-cs/usr/share/locale/cs/entry.desktop