Update upstream source from tag 'upstream/4.3'
Update to upstream version '4.3'
with Debian dir 4421bca7c8d1f168e1cfa218afd1b4efb79e1ad1
Yuri D'Elia
4 years ago
0 | 0 |
PREFIX ?= /usr/local
|
1 | 1 |
MANPREFIX ?= ${PREFIX}/man
|
2 | |
RELEASE = 4.2
|
|
2 |
RELEASE = 4.3
|
3 | 3 |
CPPFLAGS += -DRELEASE=\"${RELEASE}\"
|
4 | 4 |
|
5 | 5 |
all: versioncheck entr
|
0 | 0 |
= Release History
|
|
1 |
|
|
2 |
== 4.3: September 25, 2019
|
|
3 |
|
|
4 |
- Move hosting from bitbucket.org to github.com
|
|
5 |
- Rename tag names from entr-X.Y to X.Y
|
|
6 |
- Replace hg with git as a dependency for system-test.sh
|
1 | 7 |
|
2 | 8 |
== 4.2: March 28, 2019
|
3 | 9 |
|
16 | 16 |
Source Installation - Windows Subsystem for Linux
|
17 | 17 |
-------------------------------------------------
|
18 | 18 |
|
19 | |
wget http://entrproject.org/patches/entr-3.9-wsl
|
|
19 |
wget http://eradman.com/entrproject/patches/entr-3.9-wsl
|
20 | 20 |
patch -p1 < entr-3.9-wsl
|
21 | 21 |
./configure
|
22 | 22 |
make install
|
23 | 23 |
|
24 | 24 |
The source patch is the current workaround for deformed [inotify
|
25 | 25 |
support on WSL](https://github.com/Microsoft/BashOnWindows/issues/2507).
|
|
26 |
|
|
27 |
Source Installation - Docker for Mac
|
|
28 |
------------------------------------
|
|
29 |
|
|
30 |
wget http://eradman.com/entrproject/patches/entr-3.9-docker
|
|
31 |
patch -p1 < entr-3.9-docker
|
|
32 |
./configure
|
|
33 |
make install
|
|
34 |
|
|
35 |
The source patch is the current workaround for deformed [inotify
|
|
36 |
support on Docker for Mac](https://github.com/docker/for-mac/issues/896).
|
26 | 37 |
|
27 | 38 |
Man Page Examples
|
28 | 39 |
-----------------
|
|
53 | 64 |
A release history as well as features in the upcoming release are covered in the
|
54 | 65 |
[NEWS] file.
|
55 | 66 |
|
56 | |
License
|
57 | |
-------
|
58 | |
|
59 | |
Source is under and ISC-style license. See the [LICENSE] file for more detailed
|
60 | |
information on the license used for compatibility libraries.
|
61 | |
|
62 | 67 |
[kqueue(2)]: http://man.openbsd.org/OpenBSD-current/man2/kqueue.2
|
63 | 68 |
[inotify(7)]: http://man.he.net/?section=all&topic=inotify
|
64 | |
[NEWS]: http://www.bitbucket.org/eradman/entr/src/default/NEWS
|
65 | |
[LICENSE]: http://www.bitbucket.org/eradman/entr/src/default/LICENSE
|
|
69 |
[NEWS]: https://raw.githubusercontent.com/eradman/entr/master/NEWS
|
87 | 87 |
Evaluate the first argument using the interpreter specified by the
|
88 | 88 |
.Ev SHELL
|
89 | 89 |
environment variable.
|
90 | |
When this flag is set, the name of the shell and exit code is printed after each
|
|
90 |
If stdout is a TTY, the name of the shell and exit code is printed after each
|
91 | 91 |
invocation.
|
92 | 92 |
.El
|
93 | 93 |
.Pp
|
94 | 94 |
The first argument named
|
95 | 95 |
.Ar /_
|
96 | 96 |
is replaced with the absolute path of the first file to trigger an event.
|
97 | |
If the restart option is used the first file under watch is treated as the default.
|
|
97 |
The first file under watch is used as the default.
|
|
98 |
If the
|
|
99 |
.Fl s
|
|
100 |
option is used, the name of the first file to triggler an event can be read from
|
|
101 |
.Va $0 .
|
98 | 102 |
.Sh COMMANDS
|
99 | 103 |
.Nm
|
100 | 104 |
listens for keyboard input and responds to the following commands:
|
33 | 33 |
|
34 | 34 |
clear_tty='test -t 0 && stty echo icanon'
|
35 | 35 |
clear_tmux='tmux kill-session -t $tsession 2>/dev/null || true'
|
36 | |
clear_tmp='rm -r $tmp'
|
|
36 |
clear_tmp='rm -rf $tmp'
|
37 | 37 |
trap "$clear_tty; $clear_tmux; $clear_tmp" EXIT
|
38 | 38 |
|
39 | 39 |
# required utilities
|
40 | 40 |
|
41 | |
utils="hg vim tmux"
|
|
41 |
utils="git vim tmux"
|
42 | 42 |
for util in $utils; do
|
43 | 43 |
p=$(which $util 2> /dev/null) || {
|
44 | 44 |
echo "ERROR: could not locate the '$util' utility" >&2
|
|
179 | 179 |
setup
|
180 | 180 |
cp /usr/include/*.h $tmp/
|
181 | 181 |
cd $tmp
|
182 | |
hg init
|
183 | |
hg add *.h
|
184 | |
hg commit -u "regression" -m "initial checkin"
|
|
182 |
git init -q
|
|
183 |
git add *.h
|
|
184 |
git commit -m "initial checkin" -q
|
185 | 185 |
for f in `ls *.h`; do
|
186 | 186 |
chmod 644 $f
|
187 | 187 |
echo "" >> $f
|
|
190 | 190 |
ls $tmp/*.h | ./entr -p echo "changed" > $tmp/exec.out &
|
191 | 191 |
bgpid=$! ; zz
|
192 | 192 |
cd $tmp
|
193 | |
hg revert *.h
|
|
193 |
git checkout *.h -q
|
194 | 194 |
cd - > /dev/null ; zz
|
195 | 195 |
kill -INT $bgpid
|
196 | 196 |
wait $bgpid || assert "$?" "130"
|