5eb6a8e40e
New version of Agama's YaST part OBS-URL: https://build.opensuse.org/request/show/1174835 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:Agama:Devel/rubygem-agama-yast?expand=0&rev=1
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"
|