summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2007-08-30 22:45:17 +0000
committerUlrich Müller <ulm@gentoo.org>2007-08-30 22:45:17 +0000
commit1aff36c26bc4f904eb281edd6bbe603a2250ce63 (patch)
tree0ad3d84bb2cf57b039ea2f44a1fb4ae4bf321e31 /eclass
parentMissed another references to hspell when removing the dependency on it. (diff)
downloadgentoo-2-1aff36c26bc4f904eb281edd6bbe603a2250ce63.tar.gz
gentoo-2-1aff36c26bc4f904eb281edd6bbe603a2250ce63.tar.bz2
gentoo-2-1aff36c26bc4f904eb281edd6bbe603a2250ce63.zip
Fix documentation of unpack_pdv(), bug #190823.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass22
1 files changed, 15 insertions, 7 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index b996009a9914..82d8e8ec005e 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.287 2007/07/26 05:43:12 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.288 2007/08/30 22:45:17 ulm Exp $
# @ECLASS: eutils.eclass
# @MAINTAINER:
@@ -1068,15 +1068,23 @@ find_unpackable_file() {
# archive.
#
# One way to determine this is by running the following commands:
-# strings <pdv archive> | grep lseek
-# strace -elseek <pdv archive>
+#
+# @CODE
+# strings <pdv archive> | grep lseek
+# strace -elseek <pdv archive>
+# @CODE
+#
# Basically look for the first lseek command (we do the strings/grep because
# sometimes the function call is _llseek or something) and steal the 2nd
# parameter. Here is an example:
-# vapier@vapier 0 pdv_unpack # strings hldsupdatetool.bin | grep lseek
-# lseek
-# vapier@vapier 0 pdv_unpack # strace -elseek ./hldsupdatetool.bin
-# lseek(3, -4, SEEK_END) = 2981250
+#
+# @CODE
+# vapier@vapier 0 pdv_unpack # strings hldsupdatetool.bin | grep lseek
+# lseek
+# vapier@vapier 0 pdv_unpack # strace -elseek ./hldsupdatetool.bin
+# lseek(3, -4, SEEK_END) = 2981250
+# @CODE
+#
# Thus we would pass in the value of '4' as the second parameter.
unpack_pdv() {
local src=$(find_unpackable_file "$1")