diff options
author | Grant Goodyear <g2boojum@gentoo.org> | 2002-07-19 17:51:07 +0000 |
---|---|---|
committer | Grant Goodyear <g2boojum@gentoo.org> | 2002-07-19 17:51:07 +0000 |
commit | c3b50505fddf2a74c2ee1c9e931127344cfe63c7 (patch) | |
tree | e12ce0eece8a625aa2b3a85f0ae2cf9dbfa1117e /app-doc | |
parent | New package. Submitted by Tom von Schwerdtner (diff) | |
download | gentoo-2-c3b50505fddf2a74c2ee1c9e931127344cfe63c7.tar.gz gentoo-2-c3b50505fddf2a74c2ee1c9e931127344cfe63c7.tar.bz2 gentoo-2-c3b50505fddf2a74c2ee1c9e931127344cfe63c7.zip |
Allow WEBROOT to be set by the environment (and give it a nice default if not).
Diffstat (limited to 'app-doc')
-rw-r--r-- | app-doc/gentoo-web/gentoo-web-2.3a.ebuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app-doc/gentoo-web/gentoo-web-2.3a.ebuild b/app-doc/gentoo-web/gentoo-web-2.3a.ebuild index ddde3c13827f..d17c7f2525c8 100644 --- a/app-doc/gentoo-web/gentoo-web-2.3a.ebuild +++ b/app-doc/gentoo-web/gentoo-web-2.3a.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2001 Gentoo Technologies, Inc. Distributed under the terms # of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/app-doc/gentoo-web/gentoo-web-2.3a.ebuild,v 1.8 2002/07/11 06:30:11 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-doc/gentoo-web/gentoo-web-2.3a.ebuild,v 1.9 2002/07/19 17:51:07 g2boojum Exp $ S=${WORKDIR}/gentoo-src/gentoo-web TEMPLATE=${S}/xsl/guide-main.xsl @@ -26,6 +26,15 @@ src_unpack() { then echo -e "\e[32;1mCHIBA detected.\e[0m" WEBROOT=/www/virtual/www.gentoo.org/htdocs + else + if [ -n "${WEBROOT}" ] + then + # assign it from the environment. + WEBROOT=${WEBROOT} + else + # give it a nice default + WEBROOT=/home/httpd/htdocs + fi fi echo "Setting GENTOO_SRCDIR to $GENTOO_SRCDIR" |