~ubuntu-branches/ubuntu/natty/kde-l10n-ptbr/natty-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Harald Sitter
  • Date: 2010-03-31 04:52:10 UTC
  • mfrom: (1.1.22 upstream)
  • Revision ID: james.westby@ubuntu.com-20100331045210-i2e9x9t2ydunn1lp
Tags: 4:4.4.2-0ubuntu1
* New upstream release
* Base all kde-l10n packages on a common packaging
  + add build script debian/build-l10n.sh to fetch source from upstream and
    build source packages from that
  + revise all files to be more auto-editable and include warnings
    where possible, to ensure that out-of-branch edits do not happen
* Switch to source format 3
  + add quilt as build-dep (get-desktop causes changes that end up as patches)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
 
3
 
include /usr/share/cdbs/1/rules/debhelper.mk
4
 
include /usr/share/pkg-kde-tools/makefiles/1/cdbs/kde.mk
 
2
# ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !#
 
3
# DO NOT EVEN THINK ABOUT CHANGING THIS FILE DIRECTLY! ! ! !
 
4
# PLEASE USE THE BZR BRANCH AS SEEN IN debian/control
 
5
# MAKE YOUR CHANGES THERE AND THEN RUN debian/build-l10n.sh
 
6
# kthxbai :)
 
7
################################################################################
 
8
################################################################################
 
9
################################################################################
 
10
################################################################################
5
11
 
6
12
LANGCODE=pt_BR
7
 
 
8
 
clean::
9
 
        echo "*** Did you remember to refresh desktop translations with `make -f debian/rules get-desktop`? ***"
 
13
#take translations from stable branch to match our KDE 4.4.1 version
 
14
SVNREV={2010-03-26}
10
15
 
11
16
get-desktop:
12
17
        cd messages; \
13
18
                for module in kde*; do \
14
19
                        cd $${module}; \
15
 
                        svn export  svn://anonsvn.kde.org/home/kde/branches/stable/l10n-kde4/$(LANGCODE)/messages/$${module}/desktop_$${module}.po; \
 
20
                        svn export -r${SVNREV} svn://anonsvn.kde.org/home/kde/branches/stable/l10n-kde4/$(LANGCODE)/messages/$${module}/desktop_$${module}.po; \
16
21
                        cd ..; \
17
22
                done; \
18
23
        cd ../..;
19
24
 
20
 
        cp messages/kdebase/desktop_kdebase.po messages/kdebase/desktop_kdebase-runtime.po 
21
 
        cp messages/kdebase/desktop_kdebase.po messages/kdebase/desktop_kdebase-workspace.po 
 
25
        # I do not claim to understand this magic here, but I really think it should get a comment
 
26
        -cp messages/kdebase/desktop_kdebase.po messages/kdebase/desktop_kdebase-runtime.po
 
27
        -cp messages/kdebase/desktop_kdebase.po messages/kdebase/desktop_kdebase-workspace.po
 
28
        -cp messages/kdepim/desktop_kdepim.po messages/kdepim/desktop_kdepim-runtime.po
22
29
 
23
30
        cd messages/kdelibs; \
24
31
                for file in `cat /usr/lib/kubuntu-desktop-i18n/desktop-template-list`; do \
25
 
                        svn export svn://anonsvn.kde.org/home/kde/branches/stable/l10n-kde4/$(LANGCODE)/messages/$${file}.po; \
 
32
#                       svn export -r${SVNREV} svn://anonsvn.kde.org/home/kde/trunk/l10n-kde4/$(LANGCODE)/messages/$${file}.po; \
 
33
                        svn export -r${SVNREV} svn://anonsvn.kde.org/home/kde/branches/stable/l10n-kde4/$(LANGCODE)/messages/$${file}.po; \
26
34
                done; \
27
35
        cd ../..;
 
36
 
 
37
%:
 
38
        dh --with kde --with quilt $@