~ubuntu-branches/ubuntu/wily/etoys/wily-proposed

« back to all changes in this revision

Viewing changes to mkPootle

  • Committer: Package Import Robot
  • Author(s): Jonas Smedegaard, upstream
  • Date: 2015-06-24 22:21:29 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20150624222129-3ap59liebj2tzs7u
Tags: 5.0.2408-1
[ upstream ]
* New release(s).
  Closes: Bug#636577. Thanks to Steinar Bang.

* Add watch file.
* Move packaging to Debian Sugar Team, with José's consent.
  Thanks for your contributions, José and Holger.
* Stop install mkChangeLog as documentation: It isn't.
* Stop build-depend or use quilt: Patch handled by dpkg with source
  format "3.0 (quilt)".
* Have git ignore quilt .pc dir.
* Add git-buildpackage config to enable pristine-tar and signed
  tagging, and suppress eventual upstream .gitignore file.
* Tidy short and long descriptions.
  Closes: Bug#574707, #698003. Thanks to Pascal De Vuyst.
* Update copyright info:
  + Rewrite using copyright file format 1.0.
  + Add squeak-dev mailinglist as upstream contact.
    Thanks to Bert Freudenberg.
  + Add myself as copyright holder for packaging.
  + Relicense packaging as GPL-3+.
    Closes: Bug#789737. Thanks to Jośe L. Redrejo Rodríguez.
  + Extend coverage for main upstream authors.
  + Add Files section for "WenQuanYi Micro Hei" font, Apache-2.0
    licensed.
  + Update source URL and alternate Subversion source URL.
* Update package relations:
  + Relax to recommend unversioned on debhelper: Needed version
    satisfied even in oldstable.
  + Build-depend on autoconf dh-buildinfo and recent cdbs.
  + Build-depend on librsvg2-bin and netpbm.
* Repackage using CDBS.
* Fix have -doc package depend on $(misc:Depends}.
* Add lintian overrides regarding license in License-Reference field.
  See bug#786450.
* Declare compliance with Debian Policy 3.9.6.
* Tidy vm_path patch and add header.
* Add patch to use DESTDIR variable (not ROOT) in Makefile.
* Bump debhelper compatibility level to 8.
* Install the image NEWS file (not the Sugar activity wrapper one).
* Add Homepage.
* Generate XPM application icon from SVG source during build (not ship
  pre-generated one).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -x
2
 
 
3
 
# Update translation files between SVN and Pootle(git)
4
 
#
5
 
# Usage: mkPootle {pot|po|import}
6
 
#
7
 
# pot)    Copy POTs from svn to Pootle
8
 
# po)     Copy POs from svn to Pootle
9
 
# import) Copy POs from Pootle to svn
10
 
#
11
 
# EToys(GNU) structure
12
 
#  .../po/
13
 
#  .../po/domain/domain.pot
14
 
#  .../po/domain/xx_YY.po
15
 
#
16
 
# Pootle structure
17
 
# .../po/
18
 
# .../po/xx_YY/domain.po
19
 
# .../po/templates/domain.pot
20
 
 
21
 
domains=`find Content/po -name "*.pot" \
22
 
    | sed "s/^.*\/\(.*\).pot$/\1/" | sort | uniq `
23
 
 
24
 
# Copy POTs from svn to Pootle
25
 
pot() {
26
 
    for domain in $domains
27
 
    do
28
 
        mkdir -p "po/templates/"
29
 
        cp "Content/po/$domain/$domain.pot" "po/templates/$domain.pot"
30
 
    done
31
 
}
32
 
 
33
 
# Copy POs from svn to Pootle
34
 
po() {
35
 
    for domain in $domains
36
 
    do
37
 
        langs=`ls Content/po/$domain/*.po \
38
 
            | sed "s/^.*\/\(.*\).po$/\1/"`
39
 
        for lang in $langs
40
 
        do
41
 
            mkdir -p "po/$lang"
42
 
            cp "Content/po/$domain/$lang.po" "po/$lang/$domain.po"
43
 
        done
44
 
    done
45
 
}
46
 
            
47
 
# Copy POs from Pootle to svn
48
 
import() {
49
 
    files=`ls po/*/*.po`
50
 
    for file in $files
51
 
    do
52
 
        domain=`echo $file | sed "s/^.*\/\(.*\).po$/\1/"`
53
 
        lang=`echo $file | sed "s/^po\/\([^/]*\).*/\1/"`
54
 
        cp "$file" "Content/po/$domain/$lang.po"
55
 
    done
56
 
}
57
 
 
58
 
case "$1" in
59
 
    pot)
60
 
        pot
61
 
        ;;
62
 
    po)
63
 
        po
64
 
        ;;
65
 
    import)
66
 
        import
67
 
        ;;
68
 
    *)
69
 
        echo $"Usage: mkPootle {pot|po|import}"
70
 
        exit 1
71
 
esac