]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Add gist update logic to gensend target.
authorWayne Davison <wayne@opencoder.net>
Sun, 26 Sep 2021 19:32:47 +0000 (12:32 -0700)
committerWayne Davison <wayne@opencoder.net>
Sun, 26 Sep 2021 21:57:22 +0000 (14:57 -0700)
.gitignore
Makefile.in

index 47d75e914c2999f575f8aa74981d995c02a04769..13c6db8dc996fb9de32f98c8e7775a01b75ce5e8 100644 (file)
@@ -28,6 +28,7 @@ aclocal.m4
 /conftest*
 /dox
 /getgroups
+/gists
 /gmon.out
 /rsync
 /stunnel-rsyncd.conf
index 0313e6ff5334f708161a9f3f783bbdfe42fc6af6..eeda5fc7bac4003dec3c4988ace21a3444765c7c 100644 (file)
@@ -171,6 +171,10 @@ gen: conf proto.h man git-version.h
 
 .PHONY: gensend
 gensend: gen
+       if ! diff git-version.h $(srcdir)/gists/rsync-git-version.h >/dev/null; then \
+           ./rsync -ai git-version.h $(srcdir)/gists/rsync-git-version.h && \
+           (cd $(srcdir)/gists && git commit --allow-empty-message -m '' rsync-git-version.h && git push) ; \
+       fi
        rsync -aic $(GENFILES) git-version.h $${SAMBA_HOST-samba.org}:/home/ftp/pub/rsync/generated-files/
 
 aclocal.m4: $(srcdir)/m4/*.m4