From d6ec6b189b1363efde5053c5c961fa272047edda Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 17 Mar 2019 14:35:56 -0400 Subject: tests/aux/setup.sh: Write files with cat and here-documents This is clearer than printf. --- (limited to 'tests/aux') diff --git a/tests/aux/setup.sh b/tests/aux/setup.sh index 42d9a08..9954b54 100644 --- a/tests/aux/setup.sh +++ b/tests/aux/setup.sh @@ -19,14 +19,26 @@ set -eu +MAINTAINER='"J. Random Hacker" ' + cd "${1}" rm -Rf 'pkg/' mkdir -p 'pkg/tmp/' cd 'pkg/' -printf '2.0\n' >'format' -printf 'Maintainer: "J. Random Hacker" \n' >'control' -printf 'foo (1.0) trunk\n * Initial release.\n -- %s %s\n' \ - '"J. Random Hacker" ' \ - 'Thu, 01 Jan 1970 00:00:00 +0000' >'changelog' + +cat >'format' <<-EOF + 2.0 + EOF + +cat >'control' <<-EOF + Maintainer: ${MAINTAINER} + EOF + +cat >'changelog' <<-EOF + foo (1.0) trunk + * Initial release. + -- ${MAINTAINER} Thu, 01 Jan 1970 00:00:00 +0000 + EOF + cd 'tmp/' -- cgit v0.9.1