summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2006-04-17 07:04:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:04:08 -0500
commit573b2f75fbc1de1572ac885804a94ff8ae7d499a (patch)
treea1a0327b7c9572ffbc8f42f756a2c8e11e14426c /source4/script
parent84c6dea9b7e0a77368b8c50dbffd4045cda33805 (diff)
downloadsamba-573b2f75fbc1de1572ac885804a94ff8ae7d499a.tar.gz
samba-573b2f75fbc1de1572ac885804a94ff8ae7d499a.tar.bz2
samba-573b2f75fbc1de1572ac885804a94ff8ae7d499a.zip
r15099: An attempt to fix BSD make portability issues. With these changes Samba 4 builds successfully on NetBSD 3.0
(This used to be commit 71ea07e72d71b06166e0384950df83061a4677b8)
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