summaryrefslogtreecommitdiffstats
path: root/tests/aux
diff options
context:
space:
mode:
Diffstat (limited to 'tests/aux')
-rw-r--r--tests/aux/setup.sh22
1 files changed, 17 insertions, 5 deletions
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" <jrandom@example.com>'
+
cd "${1}"
rm -Rf 'pkg/'
mkdir -p 'pkg/tmp/'
cd 'pkg/'
-printf '2.0\n' >'format'
-printf 'Maintainer: "J. Random Hacker" <jrandom@example.com>\n' >'control'
-printf 'foo (1.0) trunk\n * Initial release.\n -- %s %s\n' \
- '"J. Random Hacker" <jrandom@example.com>' \
- '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/'