Skip to content

Commit 863db6c

Browse files
committed
mkproto.sh: get rid of unportable nl -n
1 parent dfd86cd commit 863db6c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/libc/dj64/parsers/mkproto.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ shift
5151
# https://stackoverflow.com/questions/11003418/calling-shell-functions-with-xargs
5252
export -f extr_proto
5353
export RTAGS
54-
list_syms $TL T | xargs -I '{}' bash -c "extr_proto $TF '{}' ASMFUNC" | nl -n ln -v 0 >$1
55-
list_syms $TL U | xargs -I '{}' bash -c "extr_proto $TF '{}' ASMCFUNC" | nl -n ln -v 0 >$2
54+
list_syms $TL T | xargs -I '{}' bash -c "extr_proto $TF '{}' ASMFUNC" | nl -v 0 | sed -E 's/^ *//' >$1
55+
list_syms $TL U | xargs -I '{}' bash -c "extr_proto $TF '{}' ASMCFUNC" | nl -v 0 | sed -E 's/^ *//' >$2
5656
echo "#define THUNK_INCS 1" >$3
5757
list_syms2 $TL U T | xargs -L 1 $URTAGS -t $TF | expand | tr -s '[:blank:]' | \
5858
cut -d " " -f 2 | sort | uniq | \

0 commit comments

Comments
 (0)