1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-11 23:25:17 +00:00
freebsd-ports/www/gn/scripts/configure

14 lines
488 B
Plaintext
Raw Normal View History

1994-09-23 20:25:10 +00:00
#!/bin/sh
#
hostname=`hostname`
echo -n "Hostname of server machine? [$hostname] "
read answer; if [ X$answer != X ]; then hostname=$answer; fi
1995-05-04 23:32:04 +00:00
maintainer="mailto:webmaster@$hostname"
echo -n "URL to default webmaster? [$maintainer] "
1994-09-23 20:25:10 +00:00
read answer; if [ X$answer != X ]; then maintainer=$answer; fi
sed -e "/GN_HOSTNAME/s/\".*\"/\"$hostname\"/" \
-e "/MAINTAINER/s/\".*\"/\"$maintainer\"/" \
${WRKSRC}/config.h >${WRKSRC}/config.h.foo
mv ${WRKSRC}/config.h.foo ${WRKSRC}/config.h