Skip to content

Commit

Permalink
hooks: grep more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jul 20, 2011
1 parent fce5022 commit 8d9264e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/hooks.d/gdk-pixbuf-query-loaders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fi
gdk_pixbuf_moduledir=$(pkg-config --variable=gdk_pixbuf_moduledir gdk-pixbuf-2.0)
gdk_pixbuf_cache_file=$(pkg-config --variable=gdk_pixbuf_cache_file gdk-pixbuf-2.0)

if grep -q "${gdk_pixbuf_moduledir}" ${BEE_METADIR}/${pkg}/FILES ; then
if grep -q "file=${gdk_pixbuf_moduledir}" ${BEE_METADIR}/${pkg}/FILES ; then
case "${action}" in
"post-install")
rm -f ${gdk_pixbuf_cache_file}
Expand Down
2 changes: 1 addition & 1 deletion src/hooks.d/glib-compile-schemas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi

for dir in ${XDG_DATA_DIRS//:/ } ; do
schema_dir=${dir}/glib-2.0/schemas
if grep -q ${schema_dir} ${BEE_METADIR}/${pkg}/FILES ; then
if grep -q "file=${schema_dir}" ${BEE_METADIR}/${pkg}/FILES ; then
case "${action}" in
"post-install")
rm -f ${schema_dir}/gschemas.compiled
Expand Down
2 changes: 1 addition & 1 deletion src/hooks.d/gtk-update-icon-cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi

for dir in ${XDG_DATA_DIRS//:/ } ; do
icon_base_dir=${dir}/icons
for line in $(grep -h "${icon_base_dir}/.*/index.theme" ${BEE_METADIR}/${pkg}/FILES) ; do
for line in $(grep -h "file=${icon_base_dir}/.*/index.theme" ${BEE_METADIR}/${pkg}/FILES) ; do
eval $(beesep ${line})
icon_dir=${file%%/index.theme}
case "${action}" in
Expand Down
2 changes: 1 addition & 1 deletion src/hooks.d/mkfontdir-mkfontscale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function update_fonts() {

for dir in ${XDG_DATA_DIRS//:/ } ; do
font_base_dir=${dir}/fonts
if grep -q ${font_base_dir} ${BEE_METADIR}/${pkg}/FILES ; then
if grep -q "file=${font_base_dir}" ${BEE_METADIR}/${pkg}/FILES ; then
case "${action}" in
"post-install")
clean_font_dirs ${font_base_dir}
Expand Down
2 changes: 1 addition & 1 deletion src/hooks.d/update-desktop-database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi

for dir in ${XDG_DATA_DIRS//:/ } ; do
desktop_dir=${dir}/applications
if grep -q "${desktop_dir}/.*\.desktop" ${BEE_METADIR}/${pkg}/FILES ; then
if grep -q "file=${desktop_dir}/.*\.desktop" ${BEE_METADIR}/${pkg}/FILES ; then
case "${action}" in
"post-install")
rm -f ${desktop_dir}/mimeinfo.cache
Expand Down
2 changes: 1 addition & 1 deletion src/hooks.d/update-mime-database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi

for dir in ${XDG_DATA_DIRS//:/ } ; do
mime_dir=${dir}/mime
if grep -q "${mime_dir}/packages" ${BEE_METADIR}/${pkg}/FILES ; then
if grep -q "file=${mime_dir}/packages" ${BEE_METADIR}/${pkg}/FILES ; then
case "${action}" in
"post-install")
update-mime-database ${mime_dir}
Expand Down

0 comments on commit 8d9264e

Please sign in to comment.