diff options
author | jkh <jkh@FreeBSD.org> | 1994-10-04 15:12:57 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-10-04 15:12:57 +0000 |
commit | c78727d9cdecf0e15ee634abc6daed14492ac621 (patch) | |
tree | cb45fd1a644cc18c8c138010fbcf68f3f16e389e /www | |
parent | 5dd6940f08023612e64f9e143ff1cec3e1e97d60 (diff) | |
download | FreeBSD-ports-c78727d9cdecf0e15ee634abc6daed14492ac621.zip FreeBSD-ports-c78727d9cdecf0e15ee634abc6daed14492ac621.tar.gz |
These are my changes to support the new argument-less configure scripts.
Diffstat (limited to 'www')
-rw-r--r-- | www/gn/scripts/configure | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/www/gn/scripts/configure b/www/gn/scripts/configure index a2cd84f..cd81783 100644 --- a/www/gn/scripts/configure +++ b/www/gn/scripts/configure @@ -1,16 +1,5 @@ #!/bin/sh # -if [ $# -ne 3 ]; then - echo "This script should only be run by the Makefile." - exit 1 -fi - -# First arg is top level ports directory, second is current directory, -# third is the directory containing the dist. -# -PDIR=$1 -CDIR=$2 -WDIR=$3 hostname=`hostname` echo -n "Hostname of server machine? [$hostname] " @@ -20,5 +9,5 @@ echo -n "URL to default WWW admin? [$maintainer] " read answer; if [ X$answer != X ]; then maintainer=$answer; fi sed -e "/GN_HOSTNAME/s/\".*\"/\"$hostname\"/" \ -e "/MAINTAINER/s/\".*\"/\"$maintainer\"/" \ - $WDIR/config.h >$WDIR/config.h.foo -mv $WDIR/config.h.foo $WDIR/config.h + ${WRKSRC}/config.h >${WRKSRC}/config.h.foo +mv ${WRKSRC}/config.h.foo ${WRKSRC}/config.h |