| 1 | # Copyright 1999-2003 Gentoo Technologies, Inc. |
1 | # Copyright 1999-2003 Gentoo Technologies, Inc. |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.41 2003/07/14 04:47:17 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.43 2003/07/18 15:29:17 wolf31o2 Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Martin Schlemmer <azarah@gentoo.org> |
5 | # Author: Martin Schlemmer <azarah@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # This eclass is for general purpose functions that most ebuilds |
7 | # This eclass is for general purpose functions that most ebuilds |
| 8 | # have to implement themselves. |
8 | # have to implement themselves. |
| … | |
… | |
| 876 | # we do this because otherwise a failure in gzip will cause 0 bytes to be sent |
876 | # we do this because otherwise a failure in gzip will cause 0 bytes to be sent |
| 877 | # to tar which will make tar not extract anything and exit with 0 |
877 | # to tar which will make tar not extract anything and exit with 0 |
| 878 | local out="`tail +${skip} ${src} | gzip -cd | tar -x --no-same-owner -v -f -`" |
878 | local out="`tail +${skip} ${src} | gzip -cd | tar -x --no-same-owner -v -f -`" |
| 879 | [ -z "${out}" ] && die "failure unpacking makeself ${shrtsrc} ('${ver}' +${skip})" |
879 | [ -z "${out}" ] && die "failure unpacking makeself ${shrtsrc} ('${ver}' +${skip})" |
| 880 | } |
880 | } |
|
|
881 | |
|
|
882 | # Add a function to force the user to press RETURN. |
|
|
883 | # I basically needed this for the UT2003 ebuild to pause |
|
|
884 | # the ebuild until the user swapped the CD in the drive. |
|
|
885 | # I put it here in case anyone else could use it. |
|
|
886 | # wolf31o2@gentoo.org |
|
|
887 | |
|
|
888 | pressreturn() |
|
|
889 | { |
|
|
890 | local REPLY |
|
|
891 | |
|
|
892 | echo -n "Press <RETURN> to continue..." |
|
|
893 | read REPLY |
|
|
894 | } |