summaryrefslogtreecommitdiff
path: root/bin/rename-ace.pl
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-12-29 22:24:11 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-12-29 22:24:11 +0000
commit8d7696b388d51e3c3ba0b6ca72cea6e09495851f (patch)
tree37618576d1a5de267219713f7ec7c712bd8c986d /bin/rename-ace.pl
parenta02b58d625bd1e816012ce0c7bdc372b84b405cb (diff)
downloadATCD-8d7696b388d51e3c3ba0b6ca72cea6e09495851f.tar.gz
use perl from user's path, so we don't have to hard-code its location
Diffstat (limited to 'bin/rename-ace.pl')
-rwxr-xr-xbin/rename-ace.pl11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/rename-ace.pl b/bin/rename-ace.pl
index c785370f779..0bd045a1a86 100755
--- a/bin/rename-ace.pl
+++ b/bin/rename-ace.pl
@@ -1,4 +1,13 @@
-#!/pkg/gnu/bin/perl -pi
+# $Id$
+
+# The following three lines let this script run without specifying the
+# full path to perl, as long as it is in the user's PATH.
+# Taken from perlrun man page.
+
+eval '(exit $?0)' && eval 'exec perl -pi -S $0 ${1+"$@"}'
+ & eval 'exec perl -pi -S $0 $argv:q'
+ if 0;
+
s/\bAcceptor\b/ACE_Acceptor/g;
s/\bAddr\b/ACE_Addr/g;
s/\bArgument_Vector\b/ACE_ARGV/g;