#! /bin/sh

#     generate  cfg/default.ini  from  src/options.lst

echo \# This file is generated automatically. Do not edit! >$1
echo \# It is used by epos_reinit\(\) only and its content is not crucial.>>$1
echo \ >>$1

cat ../src/options.lst | awk -F, '/^OPTION / || /^OPTIONITEM / {\
while(substr($4,1,1)==" ") $4=substr($4,2,length($4)-1);\
while(substr($2,1,1)==" ") $2=substr($2,2,length($2)-1);\
if ($2!="\"\"")\
printf(length($2)<10?"%s\t\t%s\n":"%s\t%s\n",substr($2,2,length($2)-2),substr($4,1,index($4,")")-1))}'\
|sed -f ../arch/unix/makedflt.sed|grep -v ' NULL\|ML_\|_NONE_' >>$1
