File: conf-tin

package info (click to toggle)
tin 1:1.4.1-1
  • links: PTS
  • area: non-free
  • in suites: potato
  • size: 3,720 kB
  • ctags: 4,898
  • sloc: ansic: 48,134; sh: 2,001; makefile: 1,240; yacc: 699; perl: 127
file content (42 lines) | stat: -rwxr-xr-x 801 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#! /bin/sh
# Remove the files created by this script before running it.
#rm -f config.cache config.status config.log
rm -f makefile src/Makefile include/autoconf.h

if test ! -f configure
then
	autoconf
fi

OUT=td-conf.out
cat >>$OUT <<EOF/
** `date`
** node: `uname -a`
** from: `pwd`
** user: `id`
** conf: $*
EOF/
OPTS="$*"

CC="${CC-cc}"

# set
#	--with-domain-name=doma.in
# and
#	--with-nntp-default-server=news.doma.in
# to your local needs

echo "Making with $CC $CFLAGS"
CFLAGS="$CFLAGS" \
CC="$CC" \
./configure --verbose \
	--enable-nntp-only \
	--enable-prototypes \
	--disable-echo \
	--disable-mime-strict-charset \
	--with-domain-name=/etc/NNTP_INEWS_DOMAIN \
	--with-coffee \
        $OPTS $* 2>&1 |tee -a $OUT

# makefile.in is somewhat outdated, but Makefile is uptodate
rm makefile