| 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.8 2005/07/11 15:08:06 swegener Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gdesklets.eclass,v 1.9 2005/07/30 18:15:36 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: |
| … | |
… | |
| 89 | |
89 | |
| 90 | einfo "Installing Display `basename ${DSP} .display`" |
90 | einfo "Installing Display `basename ${DSP} .display`" |
| 91 | insinto ${GD_INSDIR} |
91 | insinto ${GD_INSDIR} |
| 92 | doins ${DSP} |
92 | doins ${DSP} |
| 93 | |
93 | |
| 94 | SCRIPTS=$(grep "script uri" ${DSP} | \ |
94 | SCRIPTS=$(grep "script .*uri" ${DSP} | \ |
| 95 | sed -e 's:.*<script uri=": :g' -e 's:"/>.*: :g') |
95 | sed -e 's:.*<script .*uri=": :g' -e 's:"/>.*: :g') |
| 96 | |
96 | |
| 97 | # For each one of the scripts, change to its |
97 | # For each one of the scripts, change to its |
| 98 | # base directory and change the install location |
98 | # base directory and change the install location |
| 99 | # so it gets installed at the proper place |
99 | # so it gets installed at the proper place |
| 100 | # relative to the display. |
100 | # relative to the display. |