summaryrefslogtreecommitdiff
path: root/japanese/netscape7/scripts/configure
blob: 47da672d73e12d9fc905215f8ee9c0daf5a671ce (plain) (blame)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/japanese/netscape7/scripts/Attic/configure,v 1.4 2003-07-03 09:55:02 trevor Exp $

echo ${WRKSRC}/components.conf
if [ -f ${WRKSRC}/components.conf ]; then
	exit
fi

tempfile=`/usr/bin/mktemp -t checklist`

if [ -z "${BATCH}" ]; then

/usr/bin/dialog --title "Netscape 7 component selection" --clear \
	--checklist "\n\
Choose components of Netscape 7 to download and install. \n\
Press the space bar to toggle selections." -1 -1 10 \
"browser"	"Web browser"				ON \
"defljajp"	"Japanese/Japan profile defaults"	ON \
"flash"		"Flash plugin"				ON \
"langjajp"	"Japanese/Japan language pack"		ON \
"mail"		"e-mail and news"			ON \
"regjp"		"regional settings for Japan"		ON \
"regus"		"regional settings for the USA"		ON \
"spellchecker"	"spell-checker"				ON \
"talkback"	"sends bug reports to Netscape staff"	ON \
2> /tmp/checklist.tmp.$$

retval=$?

choice=`cat /tmp/checklist.tmp.$$`
rm -f /tmp/checklist.tmp.$$

case $retval in
	0)	if [ -z "$choice" ]; then
			echo "Nothing selected"
			exit 1;
	fi
	;;
	1)	echo "Cancel pressed."
		exit 1
	;;
esac

echo "$choice" \
	| sed -e "s/\"//g" \
	| sed -e "s/mail/mail browser/g" \
	| sed -e "s/browser/AIM browser psm xpcom/g" \
	| sort -u \
	| sed -e "s/ /.xpi /g" \
	| sed -e "s/$/.xpi/g" \
	| perl -pi -e "s/ /\n/g" \
	> ${WRKSRC}/components.conf
fi

echo "* Your choices are saved.  You must run the \"make\" command again to"
echo "* complete the build.  Ignore the \"Error code 1\" below."
exit 1