diff options
| author | Rod Whitby <rod@whitby.id.au> | 2007-06-08 22:11:20 +0000 |
|---|---|---|
| committer | Rod Whitby <rod@whitby.id.au> | 2007-06-08 22:11:20 +0000 |
| commit | d6db07724347d98a16670844ad3111628a7b9e4d (patch) | |
| tree | 3d7361515eef1d3b06258facbdc06c1ae8cb4cf5 /packages/python/fix-path.inc | |
| parent | ac3162bab2a58e1102f20025e7c57cdabbc596bc (diff) | |
| parent | 1d2bddcda3df064b686809ac1033ecc7d582e7a9 (diff) | |
merge of '63f976f7eeeabc5489e45b1df04c88319cd77447'
and 'f20a9853a5bcc15b88f7b9aa12eedd2fd6d65ec3'
Diffstat (limited to 'packages/python/fix-path.inc')
| -rw-r--r-- | packages/python/fix-path.inc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/python/fix-path.inc b/packages/python/fix-path.inc new file mode 100644 index 0000000000..0738c59ada --- /dev/null +++ b/packages/python/fix-path.inc @@ -0,0 +1,22 @@ +do_install_append() { + for i in `find ${D} -name "*.py"` ; do \ + sed -i -e s:${D}::g $i + done + + for i in `find ${D} -name "*.la"` ; do \ + sed -i -e s:${STAGING_LIBDIR}:${libdir}:g $i + done + + if test -e ${D}${bindir} ; then + for i in ${D}${bindir}/* ; do \ + sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i + done + fi + + if test -e ${D}${sbindir} ; then + for i in ${D}${sbindir}/* ; do \ + sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i + done + fi +} + |
