aboutsummaryrefslogtreecommitdiffstats
path: root/www/linux-mozilla-devel/scripts/configure
blob: a2989a552c02a49f447d177ef6a92bb48fd9cfb8 (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
#!/bin/sh
#
# $FreeBSD$

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

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

echo "browser langenus regus venkman xpcom" > /tmp/checklist.tmp.$$;

/usr/bin/dialog --title "Mozilla component selection" --clear \
    --checklist "\n\
Choose which components of Mozilla to download and install. \n\
Press the space bar to toggle selections." -1 -1 7 \
"chatzilla" "IRC client (102 kB) DO NOT USE:  HAS SECURITY BUG!"    OFF \
"deflenus"  "American English profile defaults (8 kB)"      ON \
"inspector" "DOM inspector (240 kB)"                ON \
"mail"      "Mozilla Mail and News (1728 kB)"           ON \
"psm"       "Personal Security Manager--recommended (656 kB)"   ON \
"talkback"  "sends crash logs to Mozilla staff (832 kB)"        ON \
"venkman"   "JavaScript debugger (150 kB)"              ON \
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