~xubuntu-dev/xubuntu-default-settings/trunk

« back to all changes in this revision

Viewing changes to usr/share/xsessions/po/Makefile

  • Committer: Lionel Le Folgoc
  • Date: 2010-08-15 15:04:02 UTC
  • Revision ID: mrpouit@ubuntu.com-20100815150402-z5ysfxnecxg4s7r9
* Refreshed translations.
* debian/control: bumped Standard-Version to 3.9.1.
* Drop pre-lucid code:
  - debian/postinst: drop conffile moving
  - debian/preinst: dropped, unneeded.
* etc/xdg/xdg-xubuntu/menus/xfce-applications.menu: hide aumix menu entry
  and move software center toward the bottom, thanks Jim Campbell.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/make -f
2
 
 
3
 
POTFILES := xubuntu.desktop.in
4
 
 
5
 
all: generate-xsession-file
6
 
 
7
 
generate-headers:
8
 
        rm -f POTFILES.in
9
 
        for i in $(POTFILES); do \
10
 
                f=$$(echo $$i | sed 's/\.in/\.in\.h/'); \
11
 
                intltool-extract -l --type=gettext/ini ../$$i; \
12
 
                echo "$$f" | tee -a POTFILES.in; \
13
 
        done
14
 
 
15
 
generate-pot: generate-headers
16
 
        xgettext --directory=tmp --files-from=POTFILES.in --output=xubuntu-xsession-file.pot --keyword=_ --keyword=N_ --keyword=Q_ --from-code=UTF-8
17
 
        rm -rf tmp POTFILES.in
18
 
 
19
 
generate-xsession-file:
20
 
        for i in $(POTFILES); do \
21
 
                f=$$(echo $$i | sed 's/\.in//'); \
22
 
                intltool-merge -d . ../$$i ../$$f; \
23
 
        done
24
 
 
25
 
update-po:
26
 
        for i in *.po; do \
27
 
                code=$$(echo $$i | sed 's/.po//'); \
28
 
                intltool-update --gettext-package=xubuntu-xsession-file --dist $$code; \
29
 
        done
30
 
 
31
 
# vim:ts=4