File: compile-schema.sh

package info (click to toggle)
gnome-shell-extension-gamemode 17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 192 kB
  • sloc: javascript: 622; sh: 103; xml: 32; makefile: 6
file content (13 lines) | stat: -rw-r--r-- 262 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

SCHEMADIR="${1:-/usr/share/glib-2.0/schemas}"

if [ -z "$DESTDIR" ]; then
    TARGETDIR="${SCHEMADIR}"
else
    TARGETDIR="${DESTDIR}/${SCHEMADIR}"
fi

glib-compile-schemas "${TARGETDIR}"
ls -l "${TARGETDIR}/gschemas.compiled"
echo "Compiled schema."