Files
motorBase/config/replaceVAR.pl
T
Ron Sluiter a3ea18fc83 Version 4-1
2000-02-08 22:19:43 +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;
}