[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 0c45d5b: Replace 'echo -n' with 'printf', for
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 0c45d5b: Replace 'echo -n' with 'printf', for portability |
Date: |
Tue, 1 Nov 2016 15:54:24 +0000 (UTC) |
branch: master
commit 0c45d5b30659bc14ab0d0b0f595ba70d091c0426
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Replace 'echo -n' with 'printf', for portability
---
install_msw.sh | 6 +++---
workhorse.make | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/install_msw.sh b/install_msw.sh
index ac64224..7d11bf9 100755
--- a/install_msw.sh
+++ b/install_msw.sh
@@ -189,9 +189,9 @@ then
done
fi
-echo -n "2450449 2458849" >/opt/lmi/data/expiry
-echo "0efd124fac6b15e6a9cd0b3dd718eea5 expiry" >/opt/lmi/data/validated.md5
-echo -n "8fa614e38dde6f7ab0f9fade87dfa2e3" >/opt/lmi/data/passkey
+printf "2450449 2458849" >/opt/lmi/data/expiry
+printf "0efd124fac6b15e6a9cd0b3dd718eea5 expiry\n"
>/opt/lmi/data/validated.md5
+printf "8fa614e38dde6f7ab0f9fade87dfa2e3" >/opt/lmi/data/passkey
# Tailored to msw; for POSIX, s|C:|| and s|CMD /c|/bin/sh| (e.g.).
diff --git a/workhorse.make b/workhorse.make
index c3d0528..6df5a23 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -979,7 +979,7 @@ fardel_date_script := \
d2=`$(DATE) --utc --date="$$d0 + 2 months" +%s`; \
j1=`expr 2440588 + $$d1 / 86400`; \
j2=`expr 2440588 + $$d2 / 86400`; \
- echo -n "$$j1 $$j2" >expiry; \
+ printf "$$j1 $$j2" >expiry; \
# Several shared libraries are required by lmi, but there seems to be
# no straightforward way to discover their individual names because
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [lmi] master 0c45d5b: Replace 'echo -n' with 'printf', for portability,
Greg Chicares <=