File: subst-sys-path

package info (click to toggle)
hippotat 1.3.1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 696 kB
  • sloc: sh: 407; makefile: 132; perl: 84; python: 79; ansic: 34
file content (5 lines) | stat: -rwxr-xr-x 114 bytes parent folder | download | duplicates (4)
1
2
3
4
5
#!/usr/bin/perl -pi
next unless m{^#\@ };
my $ok = 1;
s{@(\w+)@}{ $ENV{$1} // ($ok=0, $&) }ge;
s{^#\@ }{} if $ok;