File: subst-sys-path

package info (click to toggle)
hippotat 1.2.3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 684 kB
  • sloc: sh: 423; makefile: 130; perl: 84; python: 79; ansic: 34
file content (5 lines) | stat: -rwxr-xr-x 114 bytes parent folder | download | duplicates (3)
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;