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

Diff of /eclass/gdesklets.eclass

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

Revision 1.18 Revision 1.19
1# Copyright 2004-2006 Gentoo Foundation 1# Copyright 2004-2006 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.18 2009/05/13 02:11:24 nixphoeni Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gdesklets.eclass,v 1.19 2010/05/08 19:04:04 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:
51 [[ -d "${GDESKLETS_INST_DIR}/Displays" ]] || \ 51 [[ -d "${GDESKLETS_INST_DIR}/Displays" ]] || \
52 dodir "${GDESKLETS_INST_DIR}/Displays" 52 dodir "${GDESKLETS_INST_DIR}/Displays"
53 53
54 # The displays only need to be readable 54 # The displays only need to be readable
55 insopts -m0744 55 insopts -m0744
56
57 # Check to see if DISPLAY is set for the
58 # gdesklets-control-getid script to run without
59 # error
60 [ -z "${DISPLAY}" ] && DISPLAY=""
61 export DISPLAY
62 56
63 debug-print-section sensor_install 57 debug-print-section sensor_install
64 # First, install the Sensor (if there is one) 58 # First, install the Sensor (if there is one)
65 if [[ -n "${SENSOR_NAME}" ]]; then 59 if [[ -n "${SENSOR_NAME}" ]]; then
66 for SENS in ${SENSOR_NAME[@]}; do 60 for SENS in ${SENSOR_NAME[@]}; do
159 # There are possibly multiple Controls packaged with the display. 153 # There are possibly multiple Controls packaged with the display.
160 # For each __init__.py found, there must be a Control associated with it. 154 # For each __init__.py found, there must be a Control associated with it.
161 for CTRL in ${CONTROL_INITS[@]}; do 155 for CTRL in ${CONTROL_INITS[@]}; do
162 156
163 cd `dirname ${CTRL}` 157 cd `dirname ${CTRL}`
164 CTRL_NAME=$( "${GDESKLETS_INST_DIR}/gdesklets-control-getid" `pwd` ) 158 CTRL_NAME=$( "${GDESKLETS_INST_DIR}/gdesklets-control-getid" `pwd` 2> /dev/null )
165 einfo "Installing Control ${CTRL_NAME}" 159 einfo "Installing Control ${CTRL_NAME}"
166 # This creates the subdirectory of ${CTRL_NAME} 160 # This creates the subdirectory of ${CTRL_NAME}
167 # in the global Controls directory 161 # in the global Controls directory
168 [[ -d "${CONTROL_INSDIR}/${CTRL_NAME}" ]] || \ 162 [[ -d "${CONTROL_INSDIR}/${CTRL_NAME}" ]] || \
169 dodir "${CONTROL_INSDIR}/${CTRL_NAME}" 163 dodir "${CONTROL_INSDIR}/${CTRL_NAME}"

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.20