From 8008dc934ac51b68a231dc79460ee657b06fdc21 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 26 Jun 2014 12:33:45 -0400 Subject: Automatically wrap /etc/motd at 72 characters. --- (limited to 'build') diff --git a/build b/build index 7709692..ef72cfd 100755 --- a/build +++ b/build @@ -26,7 +26,11 @@ install: build ln -s /run base-files.data/var/run ln -s /run/lock base-files.data/var/lock # Install base files. - for file in /etc/issue /etc/motd; do \ + set -e; \ + sed ':l; N; $$!bl; s/\([^\n]\)\n\([^\n]\)/\1 \2/g' src/etc/motd | \ + sed "$(script)" | fold -s -w 72 >base-files.data/etc/motd + set -e; \ + for file in /etc/issue; do \ sed "$(script)" "src/$${file}" >"base-files.data/$${file}"; \ done printf '%s\n' '$(OPK_HOST_ARCH)' >'base-files.data/etc/proteanos_arch' -- cgit v0.9.1