blob: 55547deae78d917e08f5e63f00ab2fc3126d71d9 (
plain)
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
|
timezone: re-written tzselect as posix sh
To avoid the bash dependency.
Upstream-Status: Pending
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
timezone/Makefile | 2 +-
timezone/tzselect.ksh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Index: git/timezone/Makefile
===================================================================
--- git.orig/timezone/Makefile 2014-08-27 05:35:58.008070587 +0000
+++ git/timezone/Makefile 2014-08-27 05:36:37.908070587 +0000
@@ -114,7 +114,7 @@
$(objpfx)tzselect: tzselect.ksh $(common-objpfx)config.make
- sed -e 's|/bin/bash|$(BASH)|' \
+ sed -e 's|/bin/bash|/bin/sh|' \
-e 's|TZDIR=[^}]*|TZDIR=$(zonedir)|' \
-e '/TZVERSION=/s|see_Makefile|"$(version)"|' \
-e '/PKGVERSION=/s|=.*|="$(PKGVERSION)"|' \
Index: git/timezone/tzselect.ksh
===================================================================
--- git.orig/timezone/tzselect.ksh 2014-08-27 05:35:58.008070587 +0000
+++ git/timezone/tzselect.ksh 2014-08-27 05:35:58.000070587 +0000
@@ -35,7 +35,7 @@
# Specify default values for environment variables if they are unset.
: ${AWK=awk}
-: ${TZDIR=`pwd`}
+: ${TZDIR=$(pwd)}
# Check for awk Posix compliance.
($AWK -v x=y 'BEGIN { exit 123 }') </dev/null >/dev/null 2>&1
|