Dash:
[t2.git] / package / gnome / gconf / gconf.postinstall
blobfdbff58d1fddcbccdee153428b454cba331dbf58
1 #!/bin/bash
2 # --- T2-COPYRIGHT-NOTE-BEGIN ---
3 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 #
5 # T2 SDE: package/.../gconf/gconf.postinstall
6 # Copyright (C) 2004 - 2006 The T2 SDE Project
7 # Copyright (C) 1998 - 2004 ROCK Linux Project
8 #
9 # More information can be found in the files COPYING and README.
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; version 2 of the License. A copy of the
14 # GNU General Public License can be found in the file COPYING.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 umask 022
18 SCHEMA_DIR=/etc/D_prefix/gconf/schemas
19 export GCONF_CONFIG_SOURCE="`/D_prefix/bin/gconftool-2 --get-default-source`"
21 echo "(Re-)Generating Gnome gconf schemes ..."
22 while read schema; do
23 /D_prefix/bin/gconftool-2 --makefile-install-rule $schema | \
24 sed -e '/^[A-Z].*ed schema/d' -e '/[^ ]*/d'
25 done < <(
26 if [ -f $SCHEMA_DIR/.stamp ]; then
27 find $SCHEMA_DIR -newer $SCHEMA_DIR/.stamp -name "*.schemas"
28 else
29 find $SCHEMA_DIR -name "*.schemas"
30 fi)
32 touch $SCHEMA_DIR/.stamp
34 echo "Correcting Gnome gconf permissions (installed incorrectly by Gnome) ..."
35 find /etc/D_prefix/gconf -type d | xargs chmod 0755
36 find /etc/D_prefix/gconf -type f | xargs chmod 0644