Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mariux64
/
bee
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
0
Code
Issues
7
Pull requests
3
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
4be24f8
buildtypes
conf
contrib
hooks
gconf-install-schemas.sh
gdk-pixbuf-query-loaders.sh
glib-compile-schemas.sh
gtk-update-icon-cache.sh
info-dir.sh
ldconfig.sh
mandb.sh
mkfontdir-mkfontscale.sh
systemd-tmpfiles.sh
update-desktop-database.sh
update-mime-database.sh
manpages
src
.gitattributes
.gitignore
COPYING
DEPENDENCIES
INSTALL
Makefile
TODO
Breadcrumbs
bee
/
hooks
/
glib-compile-schemas.sh
Blame
Blame
Latest commit
mariux
BEE: update authors and dates
Jan 11, 2016
4816ed4
·
Jan 11, 2016
History
History
55 lines (52 loc) · 1.61 KB
Breadcrumbs
bee
/
hooks
/
glib-compile-schemas.sh
Top
File metadata and controls
Code
Blame
55 lines (52 loc) · 1.61 KB
Raw
#!/bin/bash # # glib-compile-schemas hook # # Copyright (C) 2009-2016 # Marius Tolzmann <m@rius.berlin> # Tobias Dreyer <dreyer@molgen.mpg.de> # and other bee developers # # This file is part of bee. # # bee is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # action=${1} pkg=${2} content=${3} : ${content:=${BEE_METADIR}/${pkg}/CONTENT} if [ -z ${BEE_VERSION} ] ; then echo >&2 "BEE-ERROR: cannot call $0 from the outside of bee .." exit 1 fi if ! type -p glib-compile-schemas >/dev/null 2>&1 ; then exit 0 fi for dir in ${XDG_DATA_DIRS//:/ } ; do schema_dir=${dir}/glib-2.0/schemas if grep -q "file=${schema_dir}" ${content}; then case "${action}" in "post-install") rm -f ${schema_dir}/gschemas.compiled glib-compile-schemas ${schema_dir} ;; "pre-remove") rm -f ${schema_dir}/gschemas.compiled ;; "post-remove") glib-compile-schemas ${schema_dir} ;; esac fi done
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
You can’t perform that action at this time.