From 90645ebe465b6579bd1846bcabc7dec46690fb8a Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Sat, 9 Feb 2013 04:43:18 +0000 Subject: [PATCH] New version, new tarball. All bug fixes and cleanup preparing to support bsd systems, including kfreebsd from Debian. Cleaned up all sed and grep that will be used by bsds, added more granular flag for bsd types. Cleaned up and corrected issues between bsd/linux, more escapes and tests added to drop error counts in bsds. Please note that you must use the inxi from branches/bsd for true bsds because sed has extra -i '' added, and has the proper #!/usr/local/bin/bash Added -! 16 for gnubsd download/update, that's for gnu bsd systems like gnu/kfreebsd from debian. That retains the top #!/bin/bash path, and also uses gnu sed so no -i '' syntax. Moved some grep -o to gawk or sed to avoid using gnu grep unnecessarily, leaving gnu grep where it will be linux only, for example parsing a /proc file. Fixed tty irc bugs for bsds and linux, now should show the right console size for both, ideally. --- inxi | 875 ++++++++++++++++++++++++++++--------------------- inxi.changelog | 30 ++ 2 files changed, 539 insertions(+), 366 deletions(-) diff --git a/inxi b/inxi index c06664b..d2ef939 100755 --- a/inxi +++ b/inxi @@ -1,8 +1,8 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 1.8.35 -#### Date: February 7 2013 +#### Version: 1.8.36 +#### Date: February 8 2013 #### Patch Number: 00 ######################################################################## #### SPECIAL THANKS @@ -84,6 +84,17 @@ #### and ideally, pwmconfig) prior to full output being available. #### -S For desktop environment, user must be in X and have xprop installed (in X11-utils) ######################################################################## +#### BSD Adjustments +#### * sed -i '' form added to bsd branch by inxi2bsd script automatically. +#### * Note: BSD sed supports using -r instead of -E for compatibility with gnu sed +#### * Gnu grep options can be used if the function component is only run in linux +#### These are the options that bsd grep does not support that inxi uses: -m -o +#### so make sure if you use those to have them in gnu/linux only sections. +#### It appears that freebsd uses gnu grep but openbsd uses bsd grep, however. +#### * BSD ps does not support --without-headers option, and also does not support --sort