2 # makefile helper to extract various settings from config/config.ini
4 #if ($v eq 'DATABASE_TYPE' and /^\s*DATABASE_TYPE\s*=\s*(\w+)/) {
10 if ($v eq 'DATABASE_DSN' and /^\s*DATABASE_DSN\s*=\s*"?([\w:\/@]+)/) {
13 $dsn =~ /^(.+?):\/\// and $result .= "$1 "; # backend
14 $dsn =~ /.+\/(.+?)$/ and $result .= "$1 "; # database: everything after the last slash
15 $dsn =~ /:\/\/(\w+):/ and $result .= "$1 "; # username (optional)
16 $dsn =~ /:\/\/\w+:(\w+)@/ and $result .= "$1 "; # password (optional)
21 if ($v ne 'DATABASE_DSN') {
22 if (/^\s*$v\s*=\s*"?([^;]+)$/) {