Skip to content

Commit 12c0586

Browse files
committed
Add gist update logic to gensend target.
1 parent 3309591 commit 12c0586

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ aclocal.m4
2828
/conftest*
2929
/dox
3030
/getgroups
31+
/gists
3132
/gmon.out
3233
/rsync
3334
/stunnel-rsyncd.conf

Makefile.in

+4
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ gen: conf proto.h man git-version.h
171171

172172
.PHONY: gensend
173173
gensend: gen
174+
if ! diff git-version.h $(srcdir)/gists/rsync-git-version.h >/dev/null; then \
175+
./rsync -ai git-version.h $(srcdir)/gists/rsync-git-version.h && \
176+
(cd $(srcdir)/gists && git commit --allow-empty-message -m '' rsync-git-version.h && git push) ; \
177+
fi
174178
rsync -aic $(GENFILES) git-version.h $${SAMBA_HOST-samba.org}:/home/ftp/pub/rsync/generated-files/
175179

176180
aclocal.m4: $(srcdir)/m4/*.m4

0 commit comments

Comments
 (0)