Files
build_tools/configure
Oleg Korshul ba051611a2 developing...
2019-06-06 11:07:28 +03:00

25 lines
356 B
Bash
Executable File

#!/bin/bash
[ -e config ] && rm config
key=""
is_closed=true
while [ "$#" -gt "0" ]
do
if [ "${1:0:2}" = "--" ]
then
if [ "$is_closed" = false ]
then
echo "$key=\"1\"" >> config
fi
key=${1:2}
is_closed=false
elif [ "$is_closed" = false ]
then
echo "$key=\"$1\"" >> config
is_closed=true
fi
shift
done