~youscribe/parted/3.1

« back to all changes in this revision

Viewing changes to doc/C/Makefile.am

  • Committer: Guilhem Lettron
  • Date: 2012-10-22 14:37:59 UTC
  • Revision ID: guilhem+ubuntu@lettron.fr-20121022143759-m403kecgz13sknvp
3.1 from tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Process this file with automake to produce Makefile.in
 
2
 
 
3
dist_man8_MANS = \
 
4
        parted.8 \
 
5
        partprobe.8
 
6
 
 
7
.PHONY: updatepo
 
8
# Update the POT in srcdir
 
9
# Make sure the update does not only consist in a new POT-Creation-Date
 
10
# Don't do anything if $(srcdir) is read-only (i.e., for "make distcheck").
 
11
updatepo:
 
12
        cd $(srcdir); \
 
13
        test -w . || exit 0; \
 
14
        for name in $(dist_man8_MANS); do \
 
15
                echo $$name; \
 
16
                cp po/$$name.pot po/$$name.new.pot; \
 
17
                po4a-updatepo -f man -m $$name -p po/$$name.new.pot; \
 
18
                diff -I '^\"POT-Creation-Date: ' po/$$name.pot po/$$name.new.pot 2>&1 > /dev/null; \
 
19
                if [ $$? ]; then \
 
20
                        mv po/$$name.new.pot po/$$name.pot; \
 
21
                else \
 
22
                        rm -f po/$$name.new.pot; \
 
23
                fi; \
 
24
        done
 
25
 
 
26
dist-hook: updatepo