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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
From 5aa236515f385befc3062b61d098082ab43e6f5a Mon Sep 17 00:00:00 2001
From: Jakub Jirutka <jakub@jirutka.cz>
Date: Fri, 1 Dec 2017 01:50:44 +0100
Subject: [PATCH] Replace /bin/bash with /bin/sh
1. Not every system provides bash by default.
2. Many systems don't install bash into /bin (but /usr/bin,
/usr/local/bin, ...)
3. Your shell scripts are already POSIX-sh compatible, so it's not
needed to require one particular shell implementation.
Upstream-Issue: https://github.com/flonatel/pipexec/pull/14
diff --git a/build/create_tar.sh b/build/create_tar.sh
index 7bf286f..4223014 100644
--- a/build/create_tar.sh
+++ b/build/create_tar.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# Create release tarball
#
diff --git a/build/init_autotools.sh b/build/init_autotools.sh
index 1ad160d..3a42399 100755
--- a/build/init_autotools.sh
+++ b/build/init_autotools.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# This must be called from within the top source dir.
#
diff --git a/src/Makefile.inc b/src/Makefile.inc
index 7792bd7..bc3614d 100644
--- a/src/Makefile.inc
+++ b/src/Makefile.inc
@@ -2,7 +2,7 @@
if !USE_VERSION_FILE
.FORCE: src/app_version.c
src/app_version.c:
- bash $(top_srcdir)/build/version-gen.sh ${top_srcdir}
+ /bin/sh $(top_srcdir)/build/version-gen.sh ${top_srcdir}
endif
# pipexec itself
diff --git a/version.sh b/version.sh
index 9f5ae2a..1150c91 100755
--- a/version.sh
+++ b/version.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
set -e
TOPSRCDIR=""
--- a/Makefile.in
+++ b/Makefile.in
@@ -1354,7 +1354,7 @@
@USE_VERSION_FILE_FALSE@.FORCE: src/app_version.c
@USE_VERSION_FILE_FALSE@src/app_version.c:
-@USE_VERSION_FILE_FALSE@ bash $(top_srcdir)/build/version-gen.sh ${top_srcdir}
+@USE_VERSION_FILE_FALSE@ /bin/sh $(top_srcdir)/build/version-gen.sh ${top_srcdir}
# Local Variables:
# mode: makefile
|