All pastes #755688 Raw Edit

Untitled

public shellscript v1 · immutable
#755688 ·published 2007-10-30 20:53 UTC
rendered paste body
  #Needed to Indent Dependencies  LEFTOFFSET="17"  TTYWIDTH="$(stty size | awk '{print $2}')"  MAXLINECHARS="$((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 "$MAXLINECHARS" ]; then        echo -n "$dep "      else        echo        echo -n "                 $dep "        charsonthisline=0      fi    done  fi  echo