*** empty log message ***

This commit is contained in:
alba 2002-08-05 22:26:24 +00:00
parent 3a99c7ff82
commit b1252db6ed
1 changed files with 35 additions and 0 deletions

35
LDP/lampadas/ini2sh.sed Executable file
View File

@ -0,0 +1,35 @@
#!/bin/sed -nf
1 i \
#!/bin/sh \
# Generated by ini2sh.sed - do not modify.\
# ignore empty lines
/^[[:space:]]*$/ b
# ignore lines starting with a '#'
/^[[:space:]]*#/ b
# copy the identifier of a section header into hold space
/^[[:space:]]*\[\([[:alnum:]_]\{1,\}\)\].*/ {
s//\1/
h
b
}
# regular 'key = value' line
{ # append new-line and section name
G
# exchange section name and assignment, insert prefix
s/\(.*\)\n\(.*\)/export LAMPADAS_\2_\1/
# remove space around '=', surround value with quotes
s/[[:space:]]*=[[:space:]]\(.*\)/="\1"/
# remove all occurrences of two neighboring quotes
s/""/"/g
# give it to me, baby
p
}