README: add example script for a possible workflow - saait - the most boring st… | |
git clone git://git.codemadness.org/saait | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 9789f45cbe96a0eb26621f7fb036a8a2db6daed8 | |
parent 5bf956a1f444ba5ec786a887f575668f42313d15 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sat, 15 Feb 2020 00:12:34 +0100 | |
README: add example script for a possible workflow | |
Diffstat: | |
M README | 17 +++++++++++++++++ | |
1 file changed, 17 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/README b/README | |
@@ -33,6 +33,23 @@ Tested and works on | |
- Windows (mingw and cygwin). | |
+Example of a workflow | |
+--------------------- | |
+ | |
+This script monitors pages for changes and for new files in the directory and | |
+regenerates static files if this happens. If successful then refreshes the | |
+current window/tab in Firefox. | |
+ | |
+Dependencies: make, xdotool, entr. | |
+ | |
+ #!/bin/sh | |
+ if test x"$1" = x"rebuild"; then | |
+ make && xdotool search --class firefox key F5 | |
+ else | |
+ while :; do find pages | entr -d -p "$(readlink -f "$0")" rebu… | |
+ fi | |
+ | |
+ | |
Documentation | |
------------- | |