mirror of
https://git.zap.org.au/git/trader.git
synced 2024-09-01 17:14:15 -04:00
Rename the desktop and AppStream data files to conform to the AppStream 1.0 specification; these now have names based on "au.org.zap.trader". Add a caption to the AppStream screenshot; update all translations to suit. Rename msgfmt-appdata to msgfmt-metainfo to reflect these changes.
24 lines
386 B
Bash
Executable File
24 lines
386 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Create or update AppData files using msgfmt(1)
|
|
# $Id$
|
|
|
|
# Usage:
|
|
# msgfmt-metainfo -d PODIR INPUT OUTPUT
|
|
|
|
set -e
|
|
|
|
if [ x"$1" != x"-d" ]; then
|
|
echo "$0: Missing parameters" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
PODIR="$2"
|
|
INPUT="$3"
|
|
OUTPUT="$4"
|
|
|
|
if ! msgfmt --xml -d "$PODIR" --template "$INPUT" -o "$OUTPUT"; then
|
|
echo "$0: Using cp(1) program instead"
|
|
cp "$INPUT" "$OUTPUT"
|
|
fi
|