File: post-install.sh

package info (click to toggle)
goodvibes 0.8.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,784 kB
  • sloc: ansic: 16,310; sh: 978; python: 21; makefile: 19
file content (25 lines) | stat: -rwxr-xr-x 568 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

set -e

DATADIR="$1"

# Package managers set this so we don't need to run
if [ "$DESTDIR" ]; then exit 0; fi

cmdcheck() { command -v "$1" >/dev/null 2>&1; }

if cmdcheck glib-compile-schemas; then
  echo "Compiling GSettings schemas..."
  glib-compile-schemas "$DATADIR/glib-2.0/schemas"
fi

if cmdcheck gtk-update-icon-cache; then
  echo "Updating icon cache..."
  gtk-update-icon-cache -t -f "$DATADIR/icons/hicolor"
fi

if cmdcheck update-desktop-database; then
  echo "Updating desktop database..."
  update-desktop-database "$DATADIR/applications"
fi