diff options
author | Muhaimin Ahsan <leroux@fezrev.com> | 2013-09-13 01:26:32 -0500 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2013-10-01 21:05:06 -0500 |
commit | 70ccf23f7e2f67c395be4cb87c8f4a26dd65918d (patch) | |
tree | 444ec31d7cbdf8d7a492c44787d641d206d1f5e7 /utils | |
parent | bc8a5e14881f0754991390fbc0c37f928887f5eb (diff) | |
download | haskell-70ccf23f7e2f67c395be4cb87c8f4a26dd65918d.tar.gz |
fingerprint.py: Invoke 'perl' manually (#8283)
This fixes the fingerprint script on windows, since we can't rely on
using '#!/usr/bin/perl'
Signed-off-by: Austin Seipp <austin@well-typed.com>
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/fingerprint/fingerprint.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/utils/fingerprint/fingerprint.py b/utils/fingerprint/fingerprint.py index b0e599d03b..5738cda8cc 100755 --- a/utils/fingerprint/fingerprint.py +++ b/utils/fingerprint/fingerprint.py @@ -55,8 +55,13 @@ def fingerprint(source=None): `sync-all` command will be run to get the current fingerprint. """ if source is None: - sync_all = ["./sync-all", "log", "-1", "--pretty=oneline"] - source = Popen(sync_all, stdout=PIPE).stdout + if sys.platform == 'win32': + # Can't rely on perl being located at `/usr/bin/perl`. + sync_all = ["perl", "./sync-all", "log", "-1", "--pretty=oneline"] + else: + sync_all = ["./sync-all", "log", "-1", "--pretty=oneline"] + + source = Popen(sync_all, stdout=PIPE).stdout lib = "" commits = {} |