cb1664bc41
Copy from home:sbrabec:branches:openSUSE:Factory/translation-update-upstream based on submit request 22521 from user sbrabec OBS-URL: https://build.opensuse.org/request/show/22521 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/translation-update-upstream?expand=0&rev=4
24 lines
542 B
Bash
24 lines
542 B
Bash
#!/bin/bash
|
|
# helper script for msgheadermerge
|
|
PO_HEADER_DIR=$1
|
|
PO_HEADER_ORDER=$2
|
|
if test -d $1 ; then
|
|
cat >/dev/null
|
|
cat $PO_HEADER_ORDER |
|
|
while read ; do
|
|
if test "${REPLY}" != "${REPLY/ }" ; then
|
|
echo "ERROR: Malformed header line $PO_HEADER_DIR/$REPLY. Ignoring." >&2
|
|
else
|
|
if test -f $PO_HEADER_DIR/$REPLY ; then
|
|
TAG=${REPLY//__SLASH__//} # safety check counterpart
|
|
echo -n "$TAG: "
|
|
cat "$PO_HEADER_DIR/$REPLY"
|
|
fi
|
|
fi
|
|
rm -f "$PO_HEADER_DIR/$REPLY"
|
|
done
|
|
rmdir $PO_HEADER_DIR
|
|
else
|
|
exit 1
|
|
fi
|