File: msgmsguniq

package info (click to toggle)
debmake-doc 1.24-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,840 kB
  • sloc: makefile: 914; sh: 692; python: 202; ansic: 114; sed: 16
file content (14 lines) | stat: -rwxr-xr-x 321 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/sh -e
# vim: set sw=4 sts=4 expandtab:
# simple script to merge 2 or more PO files
{
    msgcat --no-wrap "$1"
    while true; do
        shift
        if [ -z "$1" ]; then
            break
        else
            msgcat --no-wrap "$1" |sed -n -e '/^msgid "[^"]/,$p'
        fi
    done
} | msguniq --use-first