[SCM] The rsync repository. - branch master updated

Rsync CVS commit messages rsync-cvs at lists.samba.org
Fri Jun 12 16:10:05 UTC 2020


The branch, master has been updated
       via  e3437244 Improve how the help lines are harvested from the md file.
      from  1efeb591 Enable SIMD by default (if g++ is around).

https://git.samba.org/?p=rsync.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit e3437244b56c4d74effe437702c1b6a8dc7b3cb9
Author: Wayne Davison <wayne at opencoder.net>
Date:   Fri Jun 12 08:42:59 2020 -0700

    Improve how the help lines are harvested from the md file.

-----------------------------------------------------------------------

Summary of changes:
 Makefile.in | 16 +++-------------
 rsync.1.md  |  5 ++++-
 2 files changed, 7 insertions(+), 14 deletions(-)


Changeset truncated at 500 lines:

diff --git a/Makefile.in b/Makefile.in
index 7cf73a38..f6dd515b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -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 \
diff --git a/rsync.1.md b/rsync.1.md
index 47b16acb..0af45bda 100644
--- a/rsync.1.md
+++ b/rsync.1.md
@@ -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


-- 
The rsync repository.



More information about the rsync-cvs mailing list