summaryrefslogtreecommitdiff
path: root/win32/config_sh.PL
blob: d397a1b53b48353cff4b7ed7e6a0c0e5ff728035 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
my %opt;
while (@ARGV && $ARGV[0] =~ /^([\w_]+)=(.*)$/)
 {
  $opt{$1}=$2;
  shift(@ARGV);
 }
while (<>)
 {
  s/~([\w_]+)~/$opt{$1}/g;
  $_ = "$1='$opt{$1}'\n" if (/^([\w_]+)=/ && exists($opt{$1}));
  print;
 }