diff --git a/src/cap5/caget.pl b/src/cap5/caget.pl index 7fe60d8c5..df8cb6d25 100644 --- a/src/cap5/caget.pl +++ b/src/cap5/caget.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; diff --git a/src/cap5/cainfo.pl b/src/cap5/cainfo.pl index 2f8231494..2196655b1 100644 --- a/src/cap5/cainfo.pl +++ b/src/cap5/cainfo.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; diff --git a/src/cap5/camonitor.pl b/src/cap5/camonitor.pl index 559ec1233..4d19272b2 100644 --- a/src/cap5/camonitor.pl +++ b/src/cap5/camonitor.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; diff --git a/src/cap5/capr.pl b/src/cap5/capr.pl index 4f8abac3d..04f1caa97 100644 --- a/src/cap5/capr.pl +++ b/src/cap5/capr.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl ####################################################################### # diff --git a/src/cap5/caput.pl b/src/cap5/caput.pl index bc62eead4..8d2e6b4b3 100644 --- a/src/cap5/caput.pl +++ b/src/cap5/caput.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; diff --git a/src/cap5/perlConfig.pl b/src/cap5/perlConfig.pl index 11a524595..01b9b9fdd 100644 --- a/src/cap5/perlConfig.pl +++ b/src/cap5/perlConfig.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # This script is used to extract information about the Perl build # configuration, so the EPICS build system uses the same settings. diff --git a/src/makeBaseApp/makeBaseApp.pl b/src/makeBaseApp/makeBaseApp.pl index 7a816a0eb..cf65d290f 100755 --- a/src/makeBaseApp/makeBaseApp.pl +++ b/src/makeBaseApp/makeBaseApp.pl @@ -1,5 +1,4 @@ -eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*- - if $running_under_some_shell; # makeBaseApp +#!/usr/bin/env perl # Authors: Ralph Lange, Marty Kraimer, Andrew Johnson and Janet Anderson # $Revision-Id$ diff --git a/src/makeBaseExt/makeBaseExt.pl b/src/makeBaseExt/makeBaseExt.pl index 42855aa2f..307764823 100755 --- a/src/makeBaseExt/makeBaseExt.pl +++ b/src/makeBaseExt/makeBaseExt.pl @@ -1,5 +1,4 @@ -eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*- - if $running_under_some_shell; # makeBaseExt +#!/usr/bin/env perl # Authors: Ralph Lange, Marty Kraimer, Andrew Johnson and Janet Anderson # $Revision-Id$ diff --git a/src/registry/registerRecordDeviceDriver.pl b/src/registry/registerRecordDeviceDriver.pl index 3fa64cbe3..06698c867 100755 --- a/src/registry/registerRecordDeviceDriver.pl +++ b/src/registry/registerRecordDeviceDriver.pl @@ -1,5 +1,4 @@ -eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*- - if $running_under_some_shell; # registerRecordDeviceDriver +#!/usr/bin/env perl #************************************************************************* # Copyright (c) 2009 UChicago Argonne LLC, as Operator of Argonne # National Laboratory. diff --git a/src/tools/convertRelease.pl b/src/tools/convertRelease.pl index f6eb50e73..586e5ee35 100644 --- a/src/tools/convertRelease.pl +++ b/src/tools/convertRelease.pl @@ -1,5 +1,4 @@ -eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*- - if $running_under_some_shell; # convertRelease.pl +#!/usr/bin/env perl #************************************************************************* # Copyright (c) 2008 UChicago Argonne LLC, as Operator of Argonne # National Laboratory. diff --git a/src/tools/cvsclean.pl b/src/tools/cvsclean.pl index 09ecdf77c..b1398fda5 100644 --- a/src/tools/cvsclean.pl +++ b/src/tools/cvsclean.pl @@ -1,5 +1,4 @@ -eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*- - if $running_under_some_shell; # cvsclean.pl +#!/usr/bin/env perl #************************************************************************* # Copyright (c) 2002 The University of Chicago, as Operator of Argonne # National Laboratory. diff --git a/src/tools/dos2unix.pl b/src/tools/dos2unix.pl index c10282a3e..4940fd5f2 100644 --- a/src/tools/dos2unix.pl +++ b/src/tools/dos2unix.pl @@ -1,5 +1,4 @@ -eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*- - if $running_under_some_shell; # makeConfigAppInclude.pl +#!/usr/bin/env perl #************************************************************************* # Copyright (c) 2002 The University of Chicago, as Operator of Argonne # National Laboratory. diff --git a/src/tools/expandVars.pl b/src/tools/expandVars.pl index 2100315da..5015fe07a 100644 --- a/src/tools/expandVars.pl +++ b/src/tools/expandVars.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # # Tool to expand @VAR@ variables while copying a file. # The file will *not* be copied if it already exists. diff --git a/src/tools/filterWarnings.pl b/src/tools/filterWarnings.pl index 2e9153490..5f346cd46 100644 --- a/src/tools/filterWarnings.pl +++ b/src/tools/filterWarnings.pl @@ -1,5 +1,4 @@ -eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*- - if $running_under_some_shell; # filterWarnings.pl +#!/usr/bin/env perl #************************************************************************* # Copyright (c) 2002 The University of Chicago, as Operator of Argonne # National Laboratory. diff --git a/src/tools/fullPathName.pl b/src/tools/fullPathName.pl index 27fc57a21..a553dbd3c 100644 --- a/src/tools/fullPathName.pl +++ b/src/tools/fullPathName.pl @@ -1,5 +1,4 @@ -eval 'exec perl -S -w $0 ${1+"$@"}' # -*- Mode: perl -*- - if 0; +#!/usr/bin/env perl #************************************************************************* # Copyright (c) 2009 UChicago Argonne LLC, as Operator of Argonne # National Laboratory. diff --git a/src/tools/installEpics.pl b/src/tools/installEpics.pl index 3340bd5c3..0dfec1144 100644 --- a/src/tools/installEpics.pl +++ b/src/tools/installEpics.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl #************************************************************************* # Copyright (c) 2011 UChicago Argonne LLC, as Operator of Argonne # National Laboratory. diff --git a/src/tools/makeIncludeDbd.pl b/src/tools/makeIncludeDbd.pl index b42f6f3d8..c0b8238db 100644 --- a/src/tools/makeIncludeDbd.pl +++ b/src/tools/makeIncludeDbd.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl #************************************************************************* # Copyright (c) 2002 The University of Chicago, as Operator of Argonne # National Laboratory. diff --git a/src/tools/makeMakefile.pl b/src/tools/makeMakefile.pl index 80383ab3f..ea48d1c9b 100644 --- a/src/tools/makeMakefile.pl +++ b/src/tools/makeMakefile.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl #************************************************************************* # Copyright (c) 2002 The University of Chicago, as Operator of Argonne # National Laboratory. diff --git a/src/tools/makeTestfile.pl b/src/tools/makeTestfile.pl index 7b4f010bb..80f6f4d38 100644 --- a/src/tools/makeTestfile.pl +++ b/src/tools/makeTestfile.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl #************************************************************************* # Copyright (c) 2008 UChicago Argonne LLC, as Operator of Argonne # National Laboratory. diff --git a/src/tools/mkmf.pl b/src/tools/mkmf.pl index fa3c5055c..4334d298e 100644 --- a/src/tools/mkmf.pl +++ b/src/tools/mkmf.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl #************************************************************************* # Copyright (c) 2009 Helmholtz-Zentrum Berlin fuer Materialien und Energie. # Copyright (c) 2002 The University of Chicago, as Operator of Argonne diff --git a/src/tools/munch.pl b/src/tools/munch.pl index a51c079c5..2ed6567fb 100644 --- a/src/tools/munch.pl +++ b/src/tools/munch.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl #************************************************************************* # Copyright (c) 2010 UChicago Argonne LLC, as Operator of Argonne # National Laboratory. diff --git a/src/tools/replaceVAR.pl b/src/tools/replaceVAR.pl index 4c50f1a19..82c76bb3d 100644 --- a/src/tools/replaceVAR.pl +++ b/src/tools/replaceVAR.pl @@ -1,5 +1,4 @@ -eval 'exec perl -S $0 ${1+"$@"}' # -*- Mode: perl -*- - if $running_under_some_shell; # replaceVAR.pl +#!/usr/bin/env perl #************************************************************************* # Copyright (c) 2002 The University of Chicago, as Operator of Argonne # National Laboratory. diff --git a/src/tools/useManifestTool.pl b/src/tools/useManifestTool.pl index 45986b662..9e59e9f1f 100644 --- a/src/tools/useManifestTool.pl +++ b/src/tools/useManifestTool.pl @@ -1,6 +1,4 @@ -eval 'exec perl -S -w $0 ${1+"$@"}' # -*- Mode: perl -*- - if 0; - +#!/usr/bin/env perl # # Use MS Visual C++ compiler version number to determine if # we want to use the Manifest Tool (status=1) or not (status=0)