projects
/
m6w6
/
ext-psi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
036752d
)
paranoid watcher
author
Michael Wallner
<mike@php.net>
Thu, 22 Nov 2018 16:33:35 +0000
(17:33 +0100)
committer
Michael Wallner
<mike@php.net>
Tue, 4 Dec 2018 11:13:49 +0000
(12:13 +0100)
Makefile.frag
patch
|
blob
|
history
diff --git
a/Makefile.frag
b/Makefile.frag
index a9f6035bfa37e4da4bfa20988d9ea83481981ac0..f68503fc8811889ecbb8a4d06a8e2a4fa8aefca8 100644
(file)
--- a/
Makefile.frag
+++ b/
Makefile.frag
@@
-89,10
+89,15
@@
endif
.PHONY: psi-paranoid-backups
psi-paranoid-backups:
.PHONY: psi-paranoid-backups
psi-paranoid-backups:
- -if test -z "$((DEST))"; then \
- echo "Usage: make psi-paranoid-backups DEST=<repo to push to>"; \
+ @-if test -z "$(REPO)"; then \
+ echo; \
+ echo "Usage: make psi-paranoid-backups REPO=<repo to push to>"; \
+ echo; \
else \
else \
- git ci -am flush; \
- git push $DEST; \
+ echo "Watching $(PHP_PSI_SRCDIR) for changes to flush and push to $(REPO)"; \
+ while inotifywait -q -e modify -r $(PHP_PSI_SRCDIR); do \
+ git ci -am flush; \
+ git push $(REPO); \
+ done; \
fi
fi