/[gentoo-x86]/eclass/gdesklets.eclass
Gentoo

Diff of /eclass/gdesklets.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.4
1# Copyright 2004 Gentoo Foundation 1# Copyright 2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License, v2 or later 2# Distributed under the terms of the GNU General Public License, v2 or later
3# $Header: /var/cvsroot/gentoo-x86/eclass/gdesklets.eclass,v 1.3 2005/06/06 01:45:33 nixphoeni Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gdesklets.eclass,v 1.4 2005/06/06 02:00:12 nixphoeni Exp $
4# 4#
5# Authors: Joe Sapp <nixphoeni@gentoo.org> 5# Authors: Joe Sapp <nixphoeni@gentoo.org>
6# Mike Gardiner <obz@gentoo.org> 6# Mike Gardiner <obz@gentoo.org>
7# 7#
8# Usage: 8# Usage:
109 # directory, this will be done more than 109 # directory, this will be done more than
110 # once. It's the only solution I can 110 # once. It's the only solution I can
111 # come up with for now... 111 # come up with for now...
112 GFX=(`find . \ 112 GFX=(`find . \
113 -iname "*.png" -o -iname "*.svg" \ 113 -iname "*.png" -o -iname "*.svg" \
114 -o -iname "*.jpg" -o -iname "*.gif"`) 114 -o -iname "*.jpg" -o -iname "*.gif" \
115 -o -iname "*.xcf"`)
115 116
116 for G in ${GFX[@]}; do 117 for G in ${GFX[@]}; do
117 118
118 insinto ${GD_INSDIR}/`dirname ${G}` 119 insinto ${GD_INSDIR}/`dirname ${G}`
119 doins ${G} 120 doins ${G}
161 # Install any remaining graphics and other files 162 # Install any remaining graphics and other files
162 # that are sitting in ${S}. 163 # that are sitting in ${S}.
163 164
164 GFX=$(find . -maxdepth 1 \ 165 GFX=$(find . -maxdepth 1 \
165 -iname "*.png" -o -iname "*.svg" \ 166 -iname "*.png" -o -iname "*.svg" \
166 -o -iname "*.jpg" -o -iname "*.gif") 167 -o -iname "*.jpg" -o -iname "*.gif" \
168 -o -iname "*.xcf")
167 169
168 if [[ -n "${GFX}" ]]; then 170 if [[ -n "${GFX}" ]]; then
169 # Install to the Displays directory of the Desklet 171 # Install to the Displays directory of the Desklet
170 insinto ${GDESKLETS_INST_DIR}/Displays/${DESKLET_NAME} 172 insinto ${GDESKLETS_INST_DIR}/Displays/${DESKLET_NAME}
171 doins ${GFX} 173 doins ${GFX}

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20