blob: 4459f76a87aefa25dedb5070303b36f462fa3538 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
do_rig_locales() {
# If indicated, only build a limited selection of locales
if [ "x${LIMIT_BUILT_LOCALES}" != "${LIMIT_BUILT_LOCALES}" ]; then
INFILE="${S}/localedata/SUPPORTED"
OUTFILE="${S}/localedata/SUPPORTED.tmp"
head -n 3 $INFILE > $OUTFILE
for i in ${LIMIT_BUILT_LOCALES}; do
echo
grep $i $INFILE >> $OUTFILE
done
head --lines=-1 $OUTFILE > $INFILE
tail --lines=1 $OUTFILE | sed 's#\\##' >> $INFILE
fi
}
addtask rig_locales before do_compile after do_configure
|