#!/bin/sh # # $FreeBSD: /tmp/pcvs/ports/japanese/netscape7/scripts/Attic/configure,v 1.5 2003-07-19 18:26:19 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/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