mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-08 23:06:56 +00:00
14 lines
488 B
Bash
14 lines
488 B
Bash
#!/bin/sh
|
|
#
|
|
|
|
hostname=`hostname`
|
|
echo -n "Hostname of server machine? [$hostname] "
|
|
read answer; if [ X$answer != X ]; then hostname=$answer; fi
|
|
maintainer="mailto:webmaster@$hostname"
|
|
echo -n "URL to default webmaster? [$maintainer] "
|
|
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
|