From 12c058698b4ec2b7f0d669c183e81c8bc841eed9 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 26 Sep 2021 12:32:47 -0700 Subject: [PATCH] Add gist update logic to gensend target. --- .gitignore | 1 + Makefile.in | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 47d75e91..13c6db8d 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,7 @@ aclocal.m4 /conftest* /dox /getgroups +/gists /gmon.out /rsync /stunnel-rsyncd.conf diff --git a/Makefile.in b/Makefile.in index 0313e6ff..eeda5fc7 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 -- 2.47.2