Add gist update logic to gensend target.

This commit is contained in:
Wayne Davison
2021-09-26 12:32:47 -07:00
parent 33095916ec
commit 12c058698b
2 changed files with 5 additions and 0 deletions

1
.gitignore vendored
View File

@@ -28,6 +28,7 @@ aclocal.m4
/conftest*
/dox
/getgroups
/gists
/gmon.out
/rsync
/stunnel-rsyncd.conf

View 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