mirror of
https://git.zap.org.au/git/trader.git
synced 2024-12-04 14:46:45 -05:00
24 lines
389 B
Plaintext
24 lines
389 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
# Create or update desktop files using msgfmt(1)
|
||
|
# $Id$
|
||
|
|
||
|
# Usage:
|
||
|
# msgfmt-desktop -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 --desktop -d "$PODIR" --template "$INPUT" -o "$OUTPUT"; then
|
||
|
echo "$0: Using cp(1) program instead"
|
||
|
cp "$INPUT" "$OUTPUT"
|
||
|
fi
|