2002-03-09 09:37:37 +01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
echo ${WRKSRC}/components.conf
|
|
|
|
if [ -f ${WRKSRC}/components.conf ]; then
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
tempfile=`/usr/bin/mktemp -t checklist`
|
|
|
|
|
2004-11-29 01:15:38 +01:00
|
|
|
echo "browser deflenus langenus psm regus xpcom" > /tmp/checklist.tmp.$$;
|
2002-03-09 09:37:37 +01:00
|
|
|
|
|
|
|
/usr/bin/dialog --title "Mozilla component selection" --clear \
|
|
|
|
--checklist "\n\
|
|
|
|
Choose which components of Mozilla to download and install. \n\
|
2002-10-21 02:43:59 +02:00
|
|
|
Press the space bar to toggle selections." -1 -1 6 \
|
2004-11-29 01:15:38 +01:00
|
|
|
"chatzilla" "IRC client (240 kB)" ON \
|
|
|
|
"inspector" "DOM inspector (122 kB)" ON \
|
|
|
|
"mail" "mail and news client (1952 kB)" ON \
|
|
|
|
"spellcheck" "Spelling checker for mail and news (304 kB)" ON \
|
|
|
|
"venkman" "JavaScript debugger (240 kB)" ON \
|
2002-03-09 09:37:37 +01:00
|
|
|
2>> /tmp/checklist.tmp.$$
|
|
|
|
|
|
|
|
retval=$?
|
|
|
|
|
|
|
|
case $retval in
|
|
|
|
1) echo "Cancel pressed."
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
choice=`cat /tmp/checklist.tmp.$$`
|
|
|
|
rm -f /tmp/checklist.tmp.$$
|
|
|
|
|
|
|
|
echo "$choice"
|
|
|
|
echo "$choice" \
|
|
|
|
| sed -e "s/\"//g" \
|
|
|
|
| sort -u \
|
|
|
|
| sed -e "s/ /.xpi /g" \
|
|
|
|
| sed -e "s/$/.xpi/g" \
|
|
|
|
| perl -pi -e "s/ /\n/g" \
|
|
|
|
> ${WRKSRC}/components.conf
|
2003-07-04 18:34:07 +02:00
|
|
|
|
|
|
|
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
|