Ubuntu Pastebin

Paste from renato at Mon, 7 Nov 2016 14:52:31 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Setup compiled gsettings schema
GS_SCHEMA_DIR=$XDG_DATA_HOME/glib-2.0/schemas
if [ $needs_update = true ]; then
  rm -rf $GS_SCHEMA_DIR
  mkdir -p $GS_SCHEMA_DIR
  for d in "${data_dirs_array[@]}"; do
    schema_dir=$d/glib-2.0/schemas
    if [ "$(ls -A $schema_dir/*.xml 2>/dev/null)" ]; then
      ln -s $schema_dir/*.xml $GS_SCHEMA_DIR
    fi
  done
  if [ -f $UBUNTU_QT_RUNTIME_PATH/usr/lib/$ARCH/glib-2.0/glib-compile-schemas ]; then
    $UBUNTU_QT_RUNTIME_PATH/usr/lib/$ARCH/glib-2.0/glib-compile-schemas $GS_SCHEMA_DIR
  fi
fi
Download as text