mirror of
https://github.com/vim/vim
synced 2025-07-15 16:51:57 +00:00
runtime(doc): non-portable sed regex in Makefile for pi_netrw.txt rule
Previously it was using '\0' in sed which is non-portable and does not work in macOS. Fix this by using the '$' (end-of-line) regex atom (which needs to be doubled in the Makefile) to append at the end instead. An alternative would have been to use '&' which is the more portable version of '\0'. closes: #16996 Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
5a307c361c
commit
c5aad6cca5
@ -143,7 +143,7 @@ os_win32.txt:
|
||||
|
||||
pi_netrw.txt: ../pack/dist/opt/netrw/doc/netrw.txt
|
||||
cp ../pack/dist/opt/netrw/doc/netrw.txt $@.tmp
|
||||
sed -e '1s/\(.*\)/\0 *pi_netrw.txt*/' $@.tmp > $@ && \
|
||||
sed -e '1s/$$/ *pi_netrw.txt*/' $@.tmp > $@ && \
|
||||
rm -f $@.tmp
|
||||
|
||||
vietnamese.txt:
|
||||
|
Reference in New Issue
Block a user