Print this page
XXX Remove nawk(1)

*** 1458,1484 **** fi set -A sids $($SCCS prs -l -r$psid -d:I: $cfile 2>/dev/null) N=${#sids[@]} ! nawkprg=' /^COMMENTS:/ {p=1; continue} /^D [0-9]+\.[0-9]+/ {printf "--- %s ---\n", $2; p=0; } NF == 0u { continue } {if (p==0) continue; print $0 }' if [[ $N -ge 2 ]]; then sid1=${sids[$((N-2))]} # Gets 2nd to last sid if [[ $fmt == "text" ]]; then $SCCS prs -l -r$sid1 $cfile 2>/dev/null | \ ! $AWK "$nawkprg" return fi $SCCS prs -l -r$sid1 $cfile 2>/dev/null | \ ! html_quote | its2url | $AWK "$nawkprg" fi } # # comments_from_wx {text|html} filepath --- 1458,1484 ---- fi set -A sids $($SCCS prs -l -r$psid -d:I: $cfile 2>/dev/null) N=${#sids[@]} ! awkprg=' /^COMMENTS:/ {p=1; continue} /^D [0-9]+\.[0-9]+/ {printf "--- %s ---\n", $2; p=0; } NF == 0u { continue } {if (p==0) continue; print $0 }' if [[ $N -ge 2 ]]; then sid1=${sids[$((N-2))]} # Gets 2nd to last sid if [[ $fmt == "text" ]]; then $SCCS prs -l -r$sid1 $cfile 2>/dev/null | \ ! $AWK "$awkprg" return fi $SCCS prs -l -r$sid1 $cfile 2>/dev/null | \ ! html_quote | its2url | $AWK "$awkprg" fi } # # comments_from_wx {text|html} filepath
*** 2797,2807 **** codemgr_parent=$CODEMGR_PARENT fi # Try to figure out the parent based on the branch the current # branch is tracking, if we fail, use origin/master ! this_branch=$($GIT branch | nawk '$1 == "*" { print $2 }') par_branch="origin/master" # If we're not on a branch there's nothing we can do if [[ $this_branch != "(no branch)" ]]; then $GIT for-each-ref \ --- 2797,2807 ---- codemgr_parent=$CODEMGR_PARENT fi # Try to figure out the parent based on the branch the current # branch is tracking, if we fail, use origin/master ! this_branch=$($GIT branch | /usr/xpg4/bin/awk '$1 == "*" { print $2 }') par_branch="origin/master" # If we're not on a branch there's nothing we can do if [[ $this_branch != "(no branch)" ]]; then $GIT for-each-ref \