mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-03 20:38:19 +02:00
this is what I wanted to do, but didn't figure out how to, thank you Valery Ushakov for the example code it also looks like the hack I had will fail with dash-binsh and yash-binsh, regardless of the if-statement checking for busybox-binsh
20 lines
486 B
Bash
20 lines
486 B
Bash
#!/bin/sh
|
|
|
|
for i in "$@"; do
|
|
if ! [ -e "$i" ]; then
|
|
continue
|
|
fi
|
|
case "$i" in
|
|
*/modules|*gtk-4.0)
|
|
/usr/bin/gio-querymodules "$i"
|
|
;;
|
|
*/schemas)
|
|
# Suppressing output since it shows warnings about bad dconf paths
|
|
# that aren't useful to end users.
|
|
# Can be removed once all known applications (gsettings-desktop-schemas,
|
|
# seahorse, ibus, gcr3) have migrated.
|
|
( /usr/bin/glib-compile-schemas "$i" 2>&1 1>&3 | \
|
|
sed -e '/are deprecated/d' 1>&2 ) 3>&1
|
|
;;
|
|
esac
|
|
done
|