Files
rubygem-agama/install_translations.sh
YaST Team Bot b638bffa41 - Version 7
- Update software issues after calling to solver
  (gh#openSUSE/agama#945).

- Set snapshots as not configurable by default
  (gh#openSUSE/agama#926).

- Explicitly add dependencies instead of relying on the live ISO
  to provide the required packages (gh#openSUSE/agama/911).

- Redefine the InstFunctions module to avoid calling code that
  causes unwanted side effects, like resetting the timezone
  (gh#openSUSE/agama#903).

- Version 6

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:Agama:Devel/rubygem-agama?expand=0&rev=17
2023-12-22 12:27:40 +00:00

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"