#!/bin/sh # # $FreeBSD$ 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 11 \ "browser" "browser" ON \ "deflptbr" "Brazilian Portuguese profile defaults" ON \ "flash" "Flash plugin" ON \ "langptbr" "Brazilian Portuguese language pack" ON \ "mail" "e-mail and news" ON \ "regbr" "regional settings for Brazil" 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