[Pm-utils] [patch commit] Hook and install location independence, the less ugly version

Victor Lowther victor.lowther at gmail.com
Sat Feb 2 11:21:27 PST 2008


This patchset just adds simple location independence.  It can also be
pulled from git://fnordovax.org/pm-utils/ (branch named
vlowther-simple-location-independence)

It uses automake to transform src/pm-action.in, src/pm-powersave.in,
and pm/functions.in into src/pm-action, src/pm-powersave, and
pm/functions respectivly.  See the appropriate Makefile.am files for
the details.

Location independence of the hooks is achieved by having pm-action and
pm-powersave export PM_FUNCTIONS, which points to the installed
location of pm/functions.
The hooks have been modified to source functions from that environment variable.

Comments?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Export-location-of-pm-functions-from-pm-action.patch
Type: text/x-diff
Size: 606 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/pm-utils/attachments/20080202/df120ab7/attachment-0011.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Update-pm-powersave-to-export-the-location-of-pm-fun.patch
Type: text/x-diff
Size: 763 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/pm-utils/attachments/20080202/df120ab7/attachment-0012.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Modified-hooks-to-source-PM_FUNCTIONS-instead-of-u.patch
Type: text/x-diff
Size: 4187 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/pm-utils/attachments/20080202/df120ab7/attachment-0013.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Added-support-for-transforming-.in-files-in-pm-Makef.patch
Type: text/x-diff
Size: 758 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/pm-utils/attachments/20080202/df120ab7/attachment-0014.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Rename-functions-in-preperation-for-autotools-based.patch
Type: text/x-diff
Size: 12779 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/pm-utils/attachments/20080202/df120ab7/attachment-0015.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Use-autotools-to-make-functions-location-independent.patch
Type: text/x-diff
Size: 2167 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/pm-utils/attachments/20080202/df120ab7/attachment-0016.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Modify-src-Makefile.am-in-preperation-for-making-the.patch
Type: text/x-diff
Size: 1196 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/pm-utils/attachments/20080202/df120ab7/attachment-0017.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-Renamed-pm-action-in-preperation-for-making-it-locat.patch
Type: text/x-diff
Size: 7148 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/pm-utils/attachments/20080202/df120ab7/attachment-0018.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-Renamed-pm-powersave-in-preperation-for-making-it-lo.patch
Type: text/x-diff
Size: 3291 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/pm-utils/attachments/20080202/df120ab7/attachment-0019.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-Use-autotools-to-make-pm-action-and-pm-powersave-loc.patch
Type: text/x-diff
Size: 1049 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/pm-utils/attachments/20080202/df120ab7/attachment-0020.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-Add-cleanfiles-in-Makefile.am-and-actually-export-P.patch
Type: text/x-diff
Size: 1127 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/pm-utils/attachments/20080202/df120ab7/attachment-0021.patch 


More information about the Pm-utils mailing list