Adding 47/just-perfection version 34.0 [16433162].
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
6b0458069f
commit
8ed6608e27
69 changed files with 27744 additions and 0 deletions
43
extensions/47/just-perfection/scripts/build.sh
Executable file
43
extensions/47/just-perfection/scripts/build.sh
Executable file
|
@ -0,0 +1,43 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Script to build the extension zip and install the package
|
||||
#
|
||||
# This Script is released under GPL v3 license
|
||||
# Copyright (C) 2020-2025 Javad Rahmatzadeh
|
||||
|
||||
set -e
|
||||
|
||||
# cd to the repo root
|
||||
cd "$( cd "$( dirname "$0" )" && pwd )/.."
|
||||
|
||||
echo "Compiling Resources..."
|
||||
glib-compile-resources \
|
||||
--sourcedir src/data \
|
||||
src/data/resources.gresource.xml
|
||||
|
||||
echo "Packing extension..."
|
||||
gnome-extensions pack src \
|
||||
--force \
|
||||
--podir="../po" \
|
||||
--extra-source="data/resources.gresource" \
|
||||
--extra-source="lib" \
|
||||
--extra-source="../LICENSE" \
|
||||
--extra-source="../CHANGELOG.md"
|
||||
|
||||
echo "Packing Done!"
|
||||
|
||||
while getopts i flag; do
|
||||
case $flag in
|
||||
|
||||
i) gnome-extensions install --force \
|
||||
just-perfection-desktop@just-perfection.shell-extension.zip && \
|
||||
echo "Extension is installed. Now restart the GNOME Shell." || \
|
||||
{ echo "ERROR: Could not install the extension!"; exit 1; };;
|
||||
|
||||
*) echo "ERROR: Invalid flag!"
|
||||
echo "Use '-i' to install the extension to your system."
|
||||
echo "To just build it, run the script without any flag."
|
||||
exit 1;;
|
||||
esac
|
||||
done
|
||||
|
34
extensions/47/just-perfection/scripts/update-pot.sh
Executable file
34
extensions/47/just-perfection/scripts/update-pot.sh
Executable file
|
@ -0,0 +1,34 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Script to update main.pot and *.po files
|
||||
#
|
||||
# This Script is released under GPL v3 license
|
||||
# Copyright (C) 2020-2025 Javad Rahmatzadeh
|
||||
|
||||
set -e
|
||||
|
||||
# cd to the repo root
|
||||
cd "$( cd "$( dirname "$0" )" && pwd )/.."
|
||||
|
||||
find -name *.ui -o -name *.js | xargs \
|
||||
xgettext \
|
||||
--from-code=UTF-8 \
|
||||
--copyright-holder="Just Perfection" \
|
||||
--package-name="Just Perfection" \
|
||||
--package-version="3" \
|
||||
--output="po/main.pot"
|
||||
|
||||
for file in po/*.po
|
||||
do
|
||||
echo -n "Updating $(basename "$file" .po)"
|
||||
msgmerge -U "$file" po/main.pot
|
||||
|
||||
if grep --silent "#, fuzzy" "$file"; then
|
||||
fuzzy+=("$(basename "$file" .po)")
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ -v fuzzy ]]; then
|
||||
echo "WARNING: Translations have unclear strings and need an update: ${fuzzy[*]}"
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue