mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-26 15:48:22 -04:00
Improve how the help lines are harvested from the md file.
This commit is contained in:
1 parent
1efeb59166
commit
e3437244b5
2 files changed
+7
-14
No files matched your search
+3
-13
@@ -103,25 +103,15 @@ options.o: latest-year.h help-rsync.h help-rsyncd.h
|
||||
|
||||
flist.o: rounding.h
|
||||
|
||||
help-rsync.h: rsync.1.md
|
||||
@sed -e '1,/^# OPTIONS SUMMARY/d' \
|
||||
-e '1,/^```/d' \
|
||||
-e '/^```/,$$d' \
|
||||
-e 's/"/\\"/g' \
|
||||
-e 's/^/ rprintf(F,"/' \
|
||||
-e 's/$$/\\n");/' \
|
||||
<"$(srcdir)/$<" >$@
|
||||
|
||||
help-rsyncd.h: rsync.1.md
|
||||
@sed -e '1,/^# OPTIONS SUMMARY/d' \
|
||||
-e '1,/^```/d' \
|
||||
-e '1,/^```/d' \
|
||||
help-rsync.h help-rsyncd.h: rsync.1.md
|
||||
@sed -e '1,/^\[comment\].*$@/d' \
|
||||
-e '1,/^```/d' \
|
||||
-e '/^```/,$$d' \
|
||||
-e 's/"/\\"/g' \
|
||||
-e 's/^/ rprintf(F,"/' \
|
||||
-e 's/$$/\\n");/' \
|
||||
<"$(srcdir)/$<" >$@
|
||||
@if ! test -s $@; then rm -f $@ ; echo "The Makefile generated an empty file: $@" ; exit 1 ; fi
|
||||
|
||||
rounding.h: rounding.c rsync.h proto.h
|
||||
@for r in 0 1 3; do \
|
||||
|
||||
+4
-1
@@ -322,11 +322,12 @@ I mirror a directory between my "old" and "new" ftp sites with the command:
|
||||
|
||||
This is launched from cron every few hours.
|
||||
|
||||
# OPTIONS SUMMARY
|
||||
# OPTION SUMMARY
|
||||
|
||||
Here is a short summary of the options available in rsync. Please refer to the
|
||||
detailed description below for a complete description.
|
||||
|
||||
[comment]: # (help-rsync.h)
|
||||
[comment]: # (Keep these short enough that they'll be under 80 chars when indented by 8 chars.)
|
||||
|
||||
```
|
||||
@@ -468,6 +469,8 @@ detailed description below for a complete description.
|
||||
Rsync can also be run as a daemon, in which case the following options are
|
||||
accepted:
|
||||
|
||||
[comment]: # (help-rsyncd.h)
|
||||
|
||||
```
|
||||
--daemon run as an rsync daemon
|
||||
--address=ADDRESS bind to the specified address
|
||||
|
||||
Reference in new issue
Block a user