summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-08-02 12:16:46 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2012-08-02 12:16:46 +0100
commita086d6644ac142ba3a4351d16b4ba369d379d4a9 (patch)
tree4443a36dd8226b0b2327ea924c3ec15872a0586a
parent81a5a94da7091489a65781763995e8969591d8c3 (diff)
parent275933f76f5f2557612117510028b8e000d5c6c7 (diff)
downloadmorph-a086d6644ac142ba3a4351d16b4ba369d379d4a9.tar.gz
Merge branch 'liw/no-hashbangs' of git://roadtrain.codethink.co.uk/baserock/morph
-rwxr-xr-xcheck10
-rw-r--r--setup.py1
2 files changed, 10 insertions, 1 deletions
diff --git a/check b/check
index 660c8cf4..b9ed2d56 100755
--- a/check
+++ b/check
@@ -58,6 +58,16 @@ then
fi
;;
esac
+
+ case "$x" in
+ *.py)
+ if head -1 "$x" | grep '^#!' > /dev/null
+ then
+ echo "ERROR: $x has a hashbang" 1>&2
+ errors=1
+ fi
+ ;;
+ esac
done
fi
exit $errors
diff --git a/setup.py b/setup.py
index f047131f..eceb705b 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
# Copyright (C) 2011, 2012 Codethink Limited
#
# This program is free software; you can redistribute it and/or modify