Files
epics-base/src/makeBaseApp/top/configure/replaceVAR.pl
T
Janet B. Anderson 5883622f59 changes for 3.14
1999-09-20 19:43:29 +00:00

13 lines
295 B
Perl

eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*-
if $running_under_some_shell; # replaceVAR.pl
# Called from within the object directory
# Replaces VAR(xxx) with $(xxx)
# and VAR_xxx_ with $(xxx)
while (<STDIN>) {
s/VAR\(/\$\(/g;
s/VAR_([^_]*)_/\$\($1\)/g;
print;
}