diff options
author | ng0 <ng0@n0.is> | 2019-11-27 21:40:37 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-11-27 21:40:37 +0000 |
commit | f6d13407fa22dcb8585bf261de8ebd4d0720e482 (patch) | |
tree | 3c39f7cecabecacd570901ecb36e0c93df02c6d8 /contrib/scripts | |
parent | 8079f8bd5569eb7f5853f5a7cf1499403b2a463a (diff) | |
download | gnunet-f6d13407fa22dcb8585bf261de8ebd4d0720e482.tar.gz gnunet-f6d13407fa22dcb8585bf261de8ebd4d0720e482.zip |
contrib/scripts: use awk to modify interpreter substitution lines.
Diffstat (limited to 'contrib/scripts')
-rw-r--r-- | contrib/scripts/Makefile.am | 2 | ||||
-rwxr-xr-x | contrib/scripts/gnunet-chk.py.in | 2 | ||||
-rw-r--r-- | contrib/scripts/gnunet-logread/Makefile.am | 2 | ||||
-rwxr-xr-x | contrib/scripts/gnunet-logread/gnunet-logread-ipc-sdedit.in | 2 | ||||
-rwxr-xr-x | contrib/scripts/gnunet-logread/gnunet-logread.in | 2 | ||||
-rw-r--r-- | contrib/scripts/gnunet_janitor.py.in | 2 | ||||
-rw-r--r-- | contrib/scripts/gnunet_pyexpect.py.in | 2 | ||||
-rw-r--r-- | contrib/scripts/pydiffer.py.in | 2 | ||||
-rwxr-xr-x | contrib/scripts/removetrailingwhitespace.py.in | 2 | ||||
-rw-r--r-- | contrib/scripts/terminate.py.in | 2 |
10 files changed, 10 insertions, 10 deletions
diff --git a/contrib/scripts/Makefile.am b/contrib/scripts/Makefile.am index 91b2bcd5a..367e5c4c9 100644 --- a/contrib/scripts/Makefile.am +++ b/contrib/scripts/Makefile.am | |||
@@ -29,7 +29,7 @@ EXTRA_DIST = \ | |||
29 | CLEANFILES = \ | 29 | CLEANFILES = \ |
30 | $(noinst_SCRIPTS) | 30 | $(noinst_SCRIPTS) |
31 | 31 | ||
32 | do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' | 32 | do_subst = $(AWK) -v py="$(PYTHON)" '{gsub("@PYTHONEXE@",py); print $$0}' |
33 | 33 | ||
34 | # Use SUFFIX Extension rules, they are more portable for every | 34 | # Use SUFFIX Extension rules, they are more portable for every |
35 | # implementation of 'make'. | 35 | # implementation of 'make'. |
diff --git a/contrib/scripts/gnunet-chk.py.in b/contrib/scripts/gnunet-chk.py.in index 7d2cf73d3..afc0924f4 100755 --- a/contrib/scripts/gnunet-chk.py.in +++ b/contrib/scripts/gnunet-chk.py.in | |||
@@ -1,4 +1,4 @@ | |||
1 | #!@PYTHON@ | 1 | #!@PYTHONEXE@ |
2 | # This file is part of GNUnet. | 2 | # This file is part of GNUnet. |
3 | # (C) 2013, 2018 Christian Grothoff (and other contributing authors) | 3 | # (C) 2013, 2018 Christian Grothoff (and other contributing authors) |
4 | # | 4 | # |
diff --git a/contrib/scripts/gnunet-logread/Makefile.am b/contrib/scripts/gnunet-logread/Makefile.am index 7903c07de..790b58fea 100644 --- a/contrib/scripts/gnunet-logread/Makefile.am +++ b/contrib/scripts/gnunet-logread/Makefile.am | |||
@@ -1,7 +1,7 @@ | |||
1 | # This Makefile.am is in the public domain | 1 | # This Makefile.am is in the public domain |
2 | AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include | 2 | AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include |
3 | 3 | ||
4 | do_subst = $(SED) -e 's,[@]PERL[@],$(PERL),g' | 4 | do_subst = $(AWK) -v py="$(PERL)" '{gsub("@PERLEXE@",py); print $$0}' |
5 | 5 | ||
6 | SUFFIXES = .in | 6 | SUFFIXES = .in |
7 | 7 | ||
diff --git a/contrib/scripts/gnunet-logread/gnunet-logread-ipc-sdedit.in b/contrib/scripts/gnunet-logread/gnunet-logread-ipc-sdedit.in index f8b7dc735..72a1551ae 100755 --- a/contrib/scripts/gnunet-logread/gnunet-logread-ipc-sdedit.in +++ b/contrib/scripts/gnunet-logread/gnunet-logread-ipc-sdedit.in | |||
@@ -1,4 +1,4 @@ | |||
1 | #!@PERL@ | 1 | #!@PERLEXE@ |
2 | 2 | ||
3 | # 1. Start sdedit and enable 'RT diagram server' in 'Global preferences'. | 3 | # 1. Start sdedit and enable 'RT diagram server' in 'Global preferences'. |
4 | # | 4 | # |
diff --git a/contrib/scripts/gnunet-logread/gnunet-logread.in b/contrib/scripts/gnunet-logread/gnunet-logread.in index 9b1c65401..e27c1d3fc 100755 --- a/contrib/scripts/gnunet-logread/gnunet-logread.in +++ b/contrib/scripts/gnunet-logread/gnunet-logread.in | |||
@@ -1,4 +1,4 @@ | |||
1 | #!@PERL@ | 1 | #!@PERLEXE@ |
2 | # helper tool to make gnunet logs more readable | 2 | # helper tool to make gnunet logs more readable |
3 | # try 'gnunet-logread -h' for usage | 3 | # try 'gnunet-logread -h' for usage |
4 | 4 | ||
diff --git a/contrib/scripts/gnunet_janitor.py.in b/contrib/scripts/gnunet_janitor.py.in index d6834bfb4..9d28d38e6 100644 --- a/contrib/scripts/gnunet_janitor.py.in +++ b/contrib/scripts/gnunet_janitor.py.in | |||
@@ -1,4 +1,4 @@ | |||
1 | #!@PYTHON@ | 1 | #!@PYTHONEXE@ |
2 | # This file is part of GNUnet. | 2 | # This file is part of GNUnet. |
3 | # (C) 2011, 2018 Christian Grothoff (and other contributing authors) | 3 | # (C) 2011, 2018 Christian Grothoff (and other contributing authors) |
4 | # | 4 | # |
diff --git a/contrib/scripts/gnunet_pyexpect.py.in b/contrib/scripts/gnunet_pyexpect.py.in index 48f8acdc1..1124dc33c 100644 --- a/contrib/scripts/gnunet_pyexpect.py.in +++ b/contrib/scripts/gnunet_pyexpect.py.in | |||
@@ -1,4 +1,4 @@ | |||
1 | #!@PYTHON@ | 1 | #!@PYTHONEXE@ |
2 | # This file is part of GNUnet. | 2 | # This file is part of GNUnet. |
3 | # (C) 2010, 2018 Christian Grothoff (and other contributing authors) | 3 | # (C) 2010, 2018 Christian Grothoff (and other contributing authors) |
4 | # | 4 | # |
diff --git a/contrib/scripts/pydiffer.py.in b/contrib/scripts/pydiffer.py.in index 08f0f4ae6..5235df3f7 100644 --- a/contrib/scripts/pydiffer.py.in +++ b/contrib/scripts/pydiffer.py.in | |||
@@ -1,4 +1,4 @@ | |||
1 | #!@PYTHON@ | 1 | #!@PYTHONEXE@ |
2 | 2 | ||
3 | import os | 3 | import os |
4 | import sys | 4 | import sys |
diff --git a/contrib/scripts/removetrailingwhitespace.py.in b/contrib/scripts/removetrailingwhitespace.py.in index e6c2d9014..6a133ecd0 100755 --- a/contrib/scripts/removetrailingwhitespace.py.in +++ b/contrib/scripts/removetrailingwhitespace.py.in | |||
@@ -1,4 +1,4 @@ | |||
1 | #!@PYTHON@ | 1 | #!@PYTHONEXE@ |
2 | 2 | ||
3 | import sys | 3 | import sys |
4 | import re | 4 | import re |
diff --git a/contrib/scripts/terminate.py.in b/contrib/scripts/terminate.py.in index 2cb4a13c4..c82fdc981 100644 --- a/contrib/scripts/terminate.py.in +++ b/contrib/scripts/terminate.py.in | |||
@@ -1,4 +1,4 @@ | |||
1 | #!@PYTHON@ | 1 | #!@PYTHONEXE@ |
2 | # This file is part of GNUnet. | 2 | # This file is part of GNUnet. |
3 | # (C) 2011, 2018 Christian Grothoff (and other contributing authors) | 3 | # (C) 2011, 2018 Christian Grothoff (and other contributing authors) |
4 | # | 4 | # |