aboutsummaryrefslogtreecommitdiff
path: root/mail/mutt-devel/scripts/generate-plist
blob: 295942c61a2f5edc10f8c760a055d5157989fae5 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
#!/bin/sh
#
# $FreeBSD$
#
# set -x

trap ' cleanup ' 0
trap ' echo_signal; exit 1' 1 2 3 15

tmp_first=$(mktemp ${WRKDIR:=/tmp}/.plist-first.XXXXXXXXXX)
tmp_last=$(mktemp ${WRKDIR}/.plist-last.XXXXXXXXXX)

cleanup() {
  rm -f $tmp_first $tmp_last
}

echo_signal() {
  echo "Got Signal -- aborting `basename $0`"
}

PATH=/bin:/usr/bin

cat > $tmp_first <<EOF
bin/flea
bin/mutt
bin/muttbug
bin/mutt_dotlock
bin/pgpewrap
bin/pgpring
bin/smime_keys
EOF

if [ "$MUTT_NLS" = "yes" ]; then
  cat >> $tmp_first <<EOF
share/locale/bg/LC_MESSAGES/mutt.mo
share/locale/ca/LC_MESSAGES/mutt.mo
share/locale/cs/LC_MESSAGES/mutt.mo
share/locale/da/LC_MESSAGES/mutt.mo
share/locale/de/LC_MESSAGES/mutt.mo
share/locale/el/LC_MESSAGES/mutt.mo
share/locale/eo/LC_MESSAGES/mutt.mo
share/locale/es/LC_MESSAGES/mutt.mo
share/locale/et/LC_MESSAGES/mutt.mo
share/locale/eu/LC_MESSAGES/mutt.mo
share/locale/fr/LC_MESSAGES/mutt.mo
share/locale/ga/LC_MESSAGES/mutt.mo
share/locale/gl/LC_MESSAGES/mutt.mo
share/locale/hu/LC_MESSAGES/mutt.mo
share/locale/id/LC_MESSAGES/mutt.mo
share/locale/it/LC_MESSAGES/mutt.mo
share/locale/ja/LC_MESSAGES/mutt.mo
share/locale/ko/LC_MESSAGES/mutt.mo
share/locale/lt/LC_MESSAGES/mutt.mo
share/locale/nl/LC_MESSAGES/mutt.mo
share/locale/pl/LC_MESSAGES/mutt.mo
share/locale/pt_BR/LC_MESSAGES/mutt.mo
share/locale/ru/LC_MESSAGES/mutt.mo
share/locale/sk/LC_MESSAGES/mutt.mo
share/locale/sv/LC_MESSAGES/mutt.mo
share/locale/tr/LC_MESSAGES/mutt.mo
share/locale/uk/LC_MESSAGES/mutt.mo
share/locale/zh_CN/LC_MESSAGES/mutt.mo
share/locale/zh_TW/LC_MESSAGES/mutt.mo
EOF
fi

if [ "$MUTT_PORTDOCS" = "yes" ]; then
  cat >> $tmp_first <<EOF
%%DOCSDIR%%/ABOUT-NLS
%%DOCSDIR%%/COPYRIGHT
%%DOCSDIR%%/ChangeLog
%%DOCSDIR%%/GPL
%%DOCSDIR%%/INSTALL
%%DOCSDIR%%/NEWS
%%DOCSDIR%%/PGP-Notes.txt
%%DOCSDIR%%/README
%%DOCSDIR%%/README.SECURITY
%%DOCSDIR%%/README.SSL
%%DOCSDIR%%/TODO
%%DOCSDIR%%/applying-patches.txt
%%DOCSDIR%%/devel-notes.txt
%%DOCSDIR%%/language.txt
%%DOCSDIR%%/language50.txt
%%DOCSDIR%%/manual.txt
%%DOCSDIR%%/patch-notes.txt
%%DOCSDIR%%/smime-notes.txt
%%EXAMPLESDIR%%/Mush.rc
%%EXAMPLESDIR%%/Pine.rc
%%EXAMPLESDIR%%/Tin.rc
%%EXAMPLESDIR%%/ca-bundle.crt
%%EXAMPLESDIR%%/colors.default
%%EXAMPLESDIR%%/colors.linux
%%EXAMPLESDIR%%/gpg.rc
%%EXAMPLESDIR%%/mutt_xtitle
%%EXAMPLESDIR%%/pgp2.rc
%%EXAMPLESDIR%%/pgp6.rc
%%EXAMPLESDIR%%/sample.mailcap
%%EXAMPLESDIR%%/sample.muttrc
%%EXAMPLESDIR%%/sample.muttrc-tlr
%%EXAMPLESDIR%%/smime.rc
%%EXAMPLESDIR%%/smime_keys_test.pl
%%EXAMPLESDIR%%/iconv/iconv.aix-3.2.5.rc
%%EXAMPLESDIR%%/iconv/iconv.aix-4.1.5.rc
%%EXAMPLESDIR%%/iconv/iconv.aix-4.2.0.rc
%%EXAMPLESDIR%%/iconv/iconv.aix-4.3.2.rc
%%EXAMPLESDIR%%/iconv/iconv.freebsd-3.3.rc
%%EXAMPLESDIR%%/iconv/iconv.glibc-2.1.3.rc
%%EXAMPLESDIR%%/iconv/iconv.glibc-2.1.90.rc
%%EXAMPLESDIR%%/iconv/iconv.hpux-10.01.rc
%%EXAMPLESDIR%%/iconv/iconv.hpux-10.20.rc
%%EXAMPLESDIR%%/iconv/iconv.hpux-11.00.rc
%%EXAMPLESDIR%%/iconv/iconv.irix-6.5.rc
%%EXAMPLESDIR%%/iconv/iconv.osf1-4.0a.rc
%%EXAMPLESDIR%%/iconv/iconv.osf1-4.0d.rc
%%EXAMPLESDIR%%/iconv/iconv.solaris-2.4.rc
%%EXAMPLESDIR%%/iconv/iconv.solaris-2.5.1.rc
%%EXAMPLESDIR%%/iconv/iconv.solaris-2.6-cjk.rc
%%EXAMPLESDIR%%/iconv/iconv.solaris-2.6.rc
%%EXAMPLESDIR%%/iconv/iconv.solaris-2.7.rc
EOF

  if [ "$MUTT_NNTP" = "yes" ]; then
    echo "%%DOCSDIR%%/ChangeLog.nntp" >> $tmp_first
  fi

  if [ "$MUTT_HTML" = "yes" ]; then
    echo "%%DOCSDIR%%/html/advancedusage.html" >> $tmp_first
    echo "%%DOCSDIR%%/html/configuration.html" >> $tmp_first
    echo "%%DOCSDIR%%/html/gettingstarted.html" >> $tmp_first
    echo "%%DOCSDIR%%/html/index.html" >> $tmp_first
    echo "%%DOCSDIR%%/html/intro.html" >> $tmp_first
    echo "%%DOCSDIR%%/html/manual.html" >> $tmp_first
    echo "%%DOCSDIR%%/html/mimesupport.html" >> $tmp_first
    echo "%%DOCSDIR%%/html/miscellany.html" >> $tmp_first
    echo "%%DOCSDIR%%/html/optionalfeatures.html" >> $tmp_first
    echo "%%DOCSDIR%%/html/reference.html" >> $tmp_first
    echo "%%DOCSDIR%%/html/tuning.html" >> $tmp_first
    if [ "$MUTT_COMPRESSED_FOLDERS" = "yes" ]; then
      echo "%%DOCSDIR%%/html/compressed-folders.html" >> $tmp_first
    fi
    echo "@dirrm %%DOCSDIR%%/html" >> $tmp_last
  fi
  cat >> $tmp_last <<EOF
@dirrm %%EXAMPLESDIR%%/iconv
@dirrm %%EXAMPLESDIR%%
@dirrm %%DOCSDIR%%
EOF
fi

sort -u $tmp_first

cat<<EOF
@unexec if cmp -s %D/etc/Muttrc.dist %D/etc/Muttrc; then rm -f %D/etc/Muttrc; fi
etc/Muttrc.dist
@exec if [ ! -f %D/etc/Muttrc ]; then install -m 644 %D/etc/Muttrc.dist %D/etc/Muttrc; fi
EOF

cat $tmp_last