dnl author: Fabian Groffen <grobian a gentoo.org>
AC_DEFUN([GENTOO_PATH_PYTHON],
[
- AC_PATH_PROG([PYTHON], [python], no, $2)
+ AC_PATH_PROG([PORTAGE_PYTHON], [python], no, $2)
dnl is is there at all?
if test "$PYTHON" = "no" ; then
-#!@PYTHON@
+#!@PORTAGE_PYTHON@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@PYTHON@ -O
+#!@PORTAGE_PYTHON@ -O
# Ripped from HP and updated from Debian
# Update by Gentoo to support unicode output
-#!@PYTHON@
+#!@PORTAGE_PYTHON@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@PYTHON@ -O
+#!@PORTAGE_PYTHON@ -O
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@PYTHON@ -O
+#!@PORTAGE_PYTHON@ -O
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@PYTHON@
+#!@PORTAGE_PYTHON@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@PYTHON@ -O
+#!@PORTAGE_PYTHON@ -O
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-src/portage/bin/ebuild,v 1.18.2.3 2005/05/07 04:32:59 ferringb Exp $
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@PYTHON@ -O
+#!@PORTAGE_PYTHON@ -O
# vim: noet :
import os
import re
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@PYTHON@
+#!@PORTAGE_PYTHON@
# Copyright Gentoo Foundation 2006
# Portage Emerge bits
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@PYTHON@ -O
+#!@PORTAGE_PYTHON@ -O
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@PYTHON@
+#!@PORTAGE_PYTHON@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@PYTHON@
+#!@PORTAGE_PYTHON@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@PYTHON@
+#!@PORTAGE_PYTHON@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@PYTHON@
+#!@PORTAGE_PYTHON@
# $Header: $
# This program is licensed under the GPL, version 2
-#!@PYTHON@ -O
+#!@PORTAGE_PYTHON@ -O
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@PYTHON@ -O
+#!@PORTAGE_PYTHON@ -O
import profile,time,sys,os
sys.path = ["@PORTAGE_BASE@/bin","@PORTAGE_BASE@/pym"]+sys.path
-#!@PYTHON@
+#!@PORTAGE_PYTHON@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@PYTHON@ -O
+#!@PORTAGE_PYTHON@ -O
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@PYTHON@
+#!@PORTAGE_PYTHON@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@PYTHON@
+#!@PORTAGE_PYTHON@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@PYTHON@ -O
+#!@PORTAGE_PYTHON@ -O
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@BASH@
+#!@PORTAGE_BASH@
# Copyright 2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#!@PYTHON@ -O
+#!@PORTAGE_PYTHON@ -O
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
AC_PATH_PROG(BASENAME, [basename], no)
AC_PATH_PROG(DIRNAME, [dirname], no)
dnl avoid bash internal variable messing up things here
-unset BASH
-GENTOO_PATH_GNUPROG(BASH, [bash])
-GENTOO_PATH_GNUPROG(SED, [sed])
-GENTOO_PATH_GNUPROG(WGET, [wget])
-GENTOO_PATH_GNUPROG(FIND, [find])
-GENTOO_PATH_GNUPROG(XARGS, [xargs])
-GENTOO_PATH_GNUPROG(GREP, [grep])
+GENTOO_PATH_GNUPROG(PORTAGE_BASH, [bash])
+GENTOO_PATH_GNUPROG(PORTAGE_SED, [sed])
+GENTOO_PATH_GNUPROG(PORTAGE_WGET, [wget])
+GENTOO_PATH_GNUPROG(PORTAGE_FIND, [find])
+GENTOO_PATH_GNUPROG(PORTAGE_XARGS, [xargs])
+GENTOO_PATH_GNUPROG(PORTAGE_GREP, [grep])
dnl Checks for header files.
AC_HEADER_STDC
exec_prefix = @exec_prefix@
sysconfdir = @sysconfdir@
libdir = @libdir@
-PYTHON = @PYTHON@
+PYTHON = @PORTAGE_PYTHON@
srcdir=@srcdir@
top_builddir=@top_builddir@
-#!@PYTHON@ -O
+#!@PORTAGE_PYTHON@ -O
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-#! @SHELL@
+#!@BASH@
-SED="@SED@"
+SED="@PORTAGE_SED@"
RM="@RM@"
BASENAME="@BASENAME@"
DIRNAME="@DIRNAME@"
+++ /dev/null
-SHELL=@SHELL@
-PATH_SEPARATOR=@PATH_SEPARATOR@
-PACKAGE_NAME=@PACKAGE_NAME@
-PACKAGE_TARNAME=@PACKAGE_TARNAME@
-PACKAGE_VERSION=@PACKAGE_VERSION@
-PACKAGE_STRING=@PACKAGE_STRING@
-PACKAGE_BUGREPORT=@PACKAGE_BUGREPORT@
-exec_prefix=@exec_prefix@
-prefix=@prefix@
-program_transform_name=@program_transform_name@
-bindir=@bindir@
-sbindir=@sbindir@
-libexecdir=@libexecdir@
-datadir=@datadir@
-sysconfdir=@sysconfdir@
-sharedstatedir=@sharedstatedir@
-localstatedir=@localstatedir@
-libdir=@libdir@
-includedir=@includedir@
-oldincludedir=@oldincludedir@
-infodir=@infodir@
-mandir=@mandir@
-build_alias=@build_alias@
-host_alias=@host_alias@
-target_alias=@target_alias@
-DEFS=@DEFS@
-ECHO_C=@ECHO_C@
-ECHO_N=@ECHO_N@
-ECHO_T=@ECHO_T@
-LIBS=@LIBS@
-build=@build@
-build_cpu=@build_cpu@
-build_vendor=@build_vendor@
-build_os=@build_os@
-host=@host@
-host_cpu=@host_cpu@
-host_vendor=@host_vendor@
-host_os=@host_os@
-target=@target@
-target_cpu=@target_cpu@
-target_vendor=@target_vendor@
-target_os=@target_os@
-INSTALL_PROGRAM=@INSTALL_PROGRAM@
-INSTALL_SCRIPT=@INSTALL_SCRIPT@
-INSTALL_DATA=@INSTALL_DATA@
-CYGPATH_W=@CYGPATH_W@
-PACKAGE=@PACKAGE@
-VERSION=@VERSION@
-ACLOCAL=@ACLOCAL@
-AUTOCONF=@AUTOCONF@
-AUTOMAKE=@AUTOMAKE@
-AUTOHEADER=@AUTOHEADER@
-MAKEINFO=@MAKEINFO@
-AMTAR=@AMTAR@
-install_sh=@install_sh@
-STRIP=@STRIP@
-ac_ct_STRIP=@ac_ct_STRIP@
-INSTALL_STRIP_PROGRAM=@INSTALL_STRIP_PROGRAM@
-mkdir_p=@mkdir_p@
-AWK=@AWK@
-SET_MAKE=@SET_MAKE@
-am__leading_dot=@am__leading_dot@
-CC=@CC@
-CFLAGS=@CFLAGS@
-LDFLAGS=@LDFLAGS@
-CPPFLAGS=@CPPFLAGS@
-ac_ct_CC=@ac_ct_CC@
-EXEEXT=@EXEEXT@
-OBJEXT=@OBJEXT@
-DEPDIR=@DEPDIR@
-am__include=@am__include@
-am__quote=@am__quote@
-AMDEP_TRUE=@AMDEP_TRUE@
-AMDEP_FALSE=@AMDEP_FALSE@
-AMDEPBACKSLASH=@AMDEPBACKSLASH@
-CCDEPMODE=@CCDEPMODE@
-am__fastdepCC_TRUE=@am__fastdepCC_TRUE@
-am__fastdepCC_FALSE=@am__fastdepCC_FALSE@
-LN_S=@LN_S@
-EGREP=@EGREP@
-XCU_ID=@XCU_ID@
-RM=@RM@
-MV=@MV@
-SED=@SED@
-BASH=@BASH@
-PYTHON=@PYTHON@
-PERL=@PERL@
-BASENAME=@BASENAME@
-DIRNAME=@DIRNAME@
-DIALOG=@DIALOG@
-WGET=@WGET@
-INSTALL_INFO=@INSTALL_INFO@
-SANDBOX=@SANDBOX@
-PRELINK=@PRELINK@
-RSYNC=@RSYNC@
-CVS=@CVS@
-SVN=@SVN@
-GPG=@GPG@
-MD5SUM=@MD5SUM@
-LOGGER=@LOGGER@
-FIND=@FIND@
-FILE=@FILE@
-READELF=@READELF@
-SETFILES=@SETFILES@
-FAKEROOT=@FAKEROOT@
-CPP=@CPP@
-ALLOCA=@ALLOCA@
-portageuser=@portageuser@
-portagegroup=@portagegroup@
-wheelgid=@wheelgid@
-rootuser=@rootuser@
-DOMAIN_PREFIX=@DOMAIN_PREFIX@
-ARCH=@ARCH@
-PORTAGE_BASE=@PORTAGE_BASE@
-INSTALL_PYTHON_SOURCES_TRUE=@INSTALL_PYTHON_SOURCES_TRUE@
-INSTALL_PYTHON_SOURCES_FALSE=@INSTALL_PYTHON_SOURCES_FALSE@
-BUILD_TBZ2TOOL_TRUE=@BUILD_TBZ2TOOL_TRUE@
-BUILD_TBZ2TOOL_FALSE=@BUILD_TBZ2TOOL_FALSE@
-BUILD_MISSINGOS_TRUE=@BUILD_MISSINGOS_TRUE@
-BUILD_MISSINGOS_FALSE=@BUILD_MISSINGOS_FALSE@
-LIBOBJS=@LIBOBJS@
-LTLIBOBJS=@LTLIBOBJS@
-configure_input=@configure_input@
-srcdir=@srcdir@
-abs_srcdir=@abs_srcdir@
-top_srcdir=@top_srcdir@
-abs_top_srcdir=@abs_top_srcdir@
-builddir=@builddir@
-abs_builddir=@abs_builddir@
-top_builddir=@top_builddir@
-abs_top_builddir=@abs_top_builddir@
-INSTALL=@INSTALL@
-all_configurevars=' SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S EGREP XCU_ID RM MV SED BASH PYTHON PERL BASENAME DIRNAME DIALOG WGET INSTALL_INFO SANDBOX PRELINK RSYNC CVS GPG MD5SUM LOGGER FIND FILE READELF SETFILES FAKEROOT CPP ALLOCA portageuser portagegroup wheelgid rootuser DOMAIN_PREFIX ARCH PORTAGE_BASE INSTALL_PYTHON_SOURCES_TRUE INSTALL_PYTHON_SOURCES_FALSE BUILD_TBZ2TOOL_TRUE BUILD_TBZ2TOOL_FALSE BUILD_MISSINGOS_TRUE BUILD_MISSINGOS_FALSE LIBOBJS LTLIBOBJS configure_input srcdir abs_srcdir top_srcdir abs_top_srcdir builddir abs_builddir top_builddir abs_top_builddir INSTALL'
export V="$1"
export DEST="${TMP}/${PKG}-${V}"
-./tabcheck.py `grep "#\!@PYTHON@" bin/* | cut -d: -f1` `find ./ -type f -name '*.py'`
+./tabcheck.py `grep "#\!@PORTAGE_PYTHON@" bin/* | cut -d: -f1` `find ./ -type f -name '*.py'`
if [ -e ${DEST} ]; then
echo EXISTS ALREADY