From b1eb46e70bfa0b159c25f26f00a589d4545beba0 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 27 Mar 2022 21:40:00 -0400 Subject: remove need for hostinfo and .host --- quotehostinfo | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'quotehostinfo') diff --git a/quotehostinfo b/quotehostinfo index cd060ec..c014e28 100755 --- a/quotehostinfo +++ b/quotehostinfo @@ -1,7 +1,10 @@ -#!/bin/bash +#!/bin/sh fil=/tmp/quotehostinfo$$ -echo compiled: `date` > $fil +echo compiled: $(date) > $fil make -s tellcc >> $fil -cat .host >> $fil -echo \"`cat $fil | sed 's/.*/&\\\\n/'`\" | sed 's/\\n /\\n/g' + +echo host: $(uname -m) $(uname -s) $(uname -r) >> $fil +gcc -v 2>&1 | tail -1 >> $fil + +echo \"$(cat $fil | sed 's/.*/&\\\\n/')\" | sed 's/\\n /\\n/g' rm $fil -- cgit v1.2.1