summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
Diffstat (limited to 'source4/script')
-rw-r--r--source4/script/buildtree.pl4
-rwxr-xr-xsource4/script/cflags.pl2
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/script/buildtree.pl b/source4/script/buildtree.pl
index 41cbb3ad76..be5170e7d1 100644
--- a/source4/script/buildtree.pl
+++ b/source4/script/buildtree.pl
@@ -1,5 +1,5 @@
-#! /usr/bin/perl -w
- eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
+#! /usr/bin/env perl -w
+ eval 'exec /usr/bin/env perl -S $0 ${1+"$@"}'
if 0; #$running_under_some_shell
use strict;
diff --git a/source4/script/cflags.pl b/source4/script/cflags.pl
index c848b56e7d..7ca8f12404 100755
--- a/source4/script/cflags.pl
+++ b/source4/script/cflags.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This is a hack to allow per target cflags. It isn't very elegant, but it
# is the most portable idea we have come up with yet