File: subst-sys-path

package info (click to toggle)
hippotat 1.1.7
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 560 kB
  • sloc: sh: 399; makefile: 124; python: 79; perl: 52; 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;