]> diplodocus.org Git - nmh/blobdiff - tools/showbuildenv
Alter HasSuffixC()'s char * to be const.
[nmh] / tools / showbuildenv
index 089eea75541eb84f98b613d1ff2adf9b3cc9dd00..5eec6ee8c93089cae3b5f2f48c190ca64c848941 100755 (executable)
@@ -14,7 +14,7 @@
 # It jumps through hoops with `|| true' despite not using `set -e'.
 
 offset () {
 # It jumps through hoops with `|| true' despite not using `set -e'.
 
 offset () {
-    sed -e '/./s/^/    /'
+    sed -e '/./s/^/    /' "$@"
 }
 
 header () {
 }
 
 header () {
@@ -34,7 +34,7 @@ for f in \
     ; do
     test -f $f || continue
     header $f
     ; do
     test -f $f || continue
     header $f
-    cat $f
+    offset $f
     break
 done
 
     break
 done
 
@@ -66,8 +66,4 @@ case ${os} in
        (pkg info 2>/dev/null | offset) || true
        (pkg_info 2>/dev/null | offset) || true
        ;;
        (pkg info 2>/dev/null | offset) || true
        (pkg_info 2>/dev/null | offset) || true
        ;;
-
-    Linux)
-        header Linux distribution:
-        (lsb_release -a 2>&1 | offset) || true
 esac
 esac