File: msgmsguniq

package info (click to toggle)
debian-reference 2.131
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 33,684 kB
  • sloc: python: 586; makefile: 574; sh: 528; sed: 80
file content (14 lines) | stat: -rwxr-xr-x 282 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/sh -e
# vim: set sw=2 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