[dak/master] debian/mirror: Use here document for trace file
---
config/debian/dinstall.functions | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions
index 62cf6f3..ce59277 100755
--- a/config/debian/dinstall.functions
+++ b/config/debian/dinstall.functions
@@ -486,14 +486,16 @@ function mirror() {
else
SERIAL="${FILESOAPLUS1}"
fi
- {
- echo "${DATE}"
- echo "Creator: dak ${CREATOR_VERSION}"
- echo "Running on host: $(hostname -f)"
- echo "Archive serial: ${SERIAL}"
- echo "Date: ${RFC822DATE}"
- echo "Architectures: ${archs%* } source"
- } > ${TRACEFILE}
+
+ cat <<EOF > ${TRACEFILE}
+${DATE}
+Creator: dak ${CREATOR_VERSION}
+Running on host: $(hostname -f)
+Archive serial: ${SERIAL}
+Date: ${RFC822DATE}
+Architectures: ${archs%* } source
+EOF
+
# Now make it accessible via one name, no matter on which host we run
cd ${targetpath}/project/trace/
ln -sf ftp-master.debian.org master
--
2.1.4
Reply to: