diff options
author | Jakob Kaivo <jkk@ung.org> | 2022-03-27 21:50:01 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2022-03-27 21:50:01 -0400 |
commit | 560847bd8c5a8f16b0262516603a812ea2c31f7f (patch) | |
tree | 6b7a599364d70fe457975fdf6f04e8d52930c7bb /quotehostinfo | |
parent | 19425508818e306f75c22df2a3f33d37ab2af7af (diff) |
simplify
Diffstat (limited to 'quotehostinfo')
-rwxr-xr-x | quotehostinfo | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/quotehostinfo b/quotehostinfo index c014e28..f6cf064 100755 --- a/quotehostinfo +++ b/quotehostinfo @@ -1,10 +1,8 @@ #!/bin/sh -fil=/tmp/quotehostinfo$$ -echo compiled: $(date) > $fil -make -s tellcc >> $fil - -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 +printf '"compiled: %s\\n%s\\nhost: %s %s %s\\n%s"\n' \ + "$(date)" \ + "$(make -s tellcc)" \ + "$(uname -m)" \ + "$(uname -s)" \ + "$(uname -r)" \ + "$(gcc -v 2>&1 | tail -1)" |