All pastes #755647 Raw Edit

Untitled

public shellscript v1 · immutable
#755647 ·published 2007-10-30 20:34 UTC
rendered paste body
  #Needed to Indent Dependencies  LEFTOFFSET="17"  TTYWIDTH="$(stty size | awk '{print $2}')"  LINECHARSMAX="$((TTYWIDTH-LEFTOFFSET))"  echo -n "Depends On     : "  charsonthisline=0  if [ -n "$depends" ]; then    for dep in $depends; do      deplength="${#dep}"      charsonthisline="$((charsonthisline+deplength+1))"      if [ "$charsonthisline" -le "$LINECHARSMAX" ]; then        echo -n "$dep "      else        echo        echo -n "                 $dep "        charsonthisline=0      fi    done  fi  echo