#!/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 6 Sélection composants" --clear \ --checklist "\n\ Choisissez les composants que vous souhaitez télécharger et installer. \n\ Appuyez sur la barre d'espace pour basculer entre les états \n\ sélectionné et désélectionné." -1 -1 10 \ "browser" "navigateur (6576 ko)" ON \ "deflfrfr" "profil français par défaut (26 ko)" ON \ "flash" "plugin Flash (576 ko)" ON \ "jre" "plugin Java (13808 ko)" ON \ "langfrfr" "locale français (592 ko)" ON \ "mail" "lecteur de courrier et de nouvelles (1824 ko)" ON \ "regfr" "configurations régionales pour la France (54 ko)" ON \ "regus" "configurations régionales pour les Etats-Unis (56 ko)" ON \ "spellchecker" "vérificateur d'orthographe (832 ko)" ON \ "talkback" "analyseur de problèmes (envoi à Netscape) (832 ko)" 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 "Aucune sélection" exit 1; fi ;; 1) echo "Annulation demandée." 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