#!/bin/sh include(confFEATURES_DIR`/cfhead.m4')dnl include(confM4_DIR`/conf.default')dnl include(confSITE_DIR/`conf')dnl access_file=confCONFIGURE_DIR/access-relay-greylist access_file_tmp=${access_file}.tmp ( \ cat ${access_file} | perl -n -e "print \$_ if (1 ... /^#\s*countries/i)" \ | grep -v "^# *countries" ; \ echo "# countries" ; \ ) > ${access_file_tmp} for country in confGREYLIST_DBM_COUNTRIES ; do ( \ echo "" ; \ echo "# ${country}" ; \ awk "{print \$2}" confCOUNTRIES_DIR/${country}.txt \ ) >> ${access_file_tmp} done cat ${access_file_tmp} > ${access_file} rm -rf ${access_file_tmp}