Don't use absolute paths for perl in validate
authorMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
Tue, 18 Nov 2014 01:15:59 +0000 (19:15 -0600)
committerAustin Seipp <austin@well-typed.com>
Tue, 18 Nov 2014 01:15:59 +0000 (19:15 -0600)
Summary: This will *not* work on NixOS for example.

Reviewers: austin

Reviewed By: austin

Subscribers: thomie, carter

Differential Revision: https://phabricator.haskell.org/D479

GHC Trac Issues: #9057

validate

index 7464be9..5954e96 100755 (executable)
--- a/validate
+++ b/validate
@@ -157,9 +157,9 @@ if [ $no_clean -eq 0 ]; then
     fi
 
     if [ $use_dph -eq 1 ]; then
-        /usr/bin/perl -w boot --validate --required-tag=dph
+        perl -w boot --validate --required-tag=dph
     else
-        /usr/bin/perl -w boot --validate
+        perl -w boot --validate
     fi
     ./configure --prefix="$INSTDIR" $config_args
 fi
@@ -299,4 +299,3 @@ Please fix them before pushing/sending patches.
 EOF
     exit 1
 fi
-