Debian Codegraph @

debian/scripts/dh-exec-subst-env

raw
1 #! /usr/bin/perl -wnp
2 ##
3 ## This does nothing else, but substitute ${...} with the
4 ## corresponding environment variable, or the original ${...} if the
5 ## env. var does not exist.
6 s/(\$\{([^\}]+)\})/exists $ENV{$2} ? $ENV{$2} : $1/eg;