File: 0003-provide-shebangs-for-each-example-script.patch

package info (click to toggle)
python-getdns 1.0.0~b1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 448 kB
  • sloc: ansic: 3,538; python: 607; makefile: 130
file content (50 lines) | stat: -rw-r--r-- 1,459 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
From 5fa36e1a7b880b74da8699ce8b155593d3eab439 Mon Sep 17 00:00:00 2001
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Sat, 16 Jul 2016 11:40:06 +0200
Subject: provide shebangs for each example script

---
 examples/client_subnet.py | 2 ++
 examples/dane_encrypt.py  | 1 +
 examples/pinset.py        | 1 +
 examples/tsig_demo.py     | 2 ++
 4 files changed, 6 insertions(+)

diff --git a/examples/client_subnet.py b/examples/client_subnet.py
index 66ac035..610c813 100755
--- a/examples/client_subnet.py
+++ b/examples/client_subnet.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
 import getdns
 from struct import pack, unpack
     
diff --git a/examples/dane_encrypt.py b/examples/dane_encrypt.py
index 73decb6..bf20786 100755
--- a/examples/dane_encrypt.py
+++ b/examples/dane_encrypt.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
 
 # an example of using getdns to pull out a TLSA record,
 # extract a certificate, extract the public key, and then
diff --git a/examples/pinset.py b/examples/pinset.py
index 6d7aaaa..1c0408c 100755
--- a/examples/pinset.py
+++ b/examples/pinset.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
 #
 # Note that we expect that each pin in the pinset list
 #   must be prefaced with pin-<algorithm>= and the pin 
diff --git a/examples/tsig_demo.py b/examples/tsig_demo.py
index 37ddcf3..6ebfcc2 100755
--- a/examples/tsig_demo.py
+++ b/examples/tsig_demo.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
 import getdns
 import base64