4f578a4b95
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:Agama:Devel/rubygem-agama-yast?expand=0&rev=23
11 lines
387 B
Bash
11 lines
387 B
Bash
#! /bin/sh
|
|
|
|
# a helper script for compiling and installing the translations
|
|
|
|
PODIR=$(mktemp --directory --suffix "-agama-po")
|
|
|
|
tar xfjv "$1" -C "$PODIR"
|
|
find "$PODIR" -name "*.po" -exec sh -c 'L=`basename "{}" .po` && mkdir -p "$RPM_BUILD_ROOT/usr/share/YaST2/locale/$L/LC_MESSAGES" && msgfmt -o "$RPM_BUILD_ROOT/usr/share/YaST2/locale/$L/LC_MESSAGES/agama.mo" "{}"' \;
|
|
|
|
rm -rf "$PODIR"
|