fromupstream: Don't freeze X11 when running with bash
Drinkcat has/had a tendency to run `bash fromupstream.py`
This causes bash to call imagemagick's generically named tool `import`
for every time we're importing python libraries. Essentially freezing
up X11 until enough Ctrl+Cs were pressed.
Write a small bash polyglot so bash exits right away with a helpful
reminder to run this script as python.
BUG=Banter from chat
Tested-by: Alexandru M Stan <firstname.lastname@example.org>
Reviewed-by: Guenter Roeck <email@example.com>
Commit-Queue: Alexandru M Stan <firstname.lastname@example.org>
diff --git a/contrib/fromupstream.py b/contrib/fromupstream.py
index 2065eff..3fd4a28 100755
@@ -7,6 +7,9 @@
"""This is a tool for picking patches from upstream and applying them."""
+"""echo""" "This is a python script! Don't interpret it with bash."
from collections import OrderedDict