8 lines
297 B
Bash
8 lines
297 B
Bash
#!/bin/sh
|
|
current=$(date +%s -r /usr/share/glib-2.0/schemas/)
|
|
last=$(cat /var/lib/ymp/sysconf/glib/update.date)
|
|
if [ "$current" != "$last" ] ; then
|
|
glib-compile-schemas /usr/share/glib-2.0/schemas/
|
|
echo "date +%s -r /usr/share/glib-2.0/schemas/" > /var/lib/ymp/sysconf/glib/update.date
|
|
fi
|