* Makefile.am (path-check): Don't use the `$status' shell variable
in the target's rules, as it's special in Zsh (equivalent to `$?',
and readonly).
2010-03-30 Stefano Lattarini <stefano.lattarini@gmail.com>
+ Avoid an unportable use of `$status' shell variable.
+ * Makefile.am (path-check): Don't use the `$status' shell variable
+ in the target's rules, as it's special in Zsh (equivalent to `$?',
+ and readonly).
+
Avoid another use of `chmod -R'.
* Makefile.am (path-check): To be safe, do not use `chmod -R' on
$(distdir) before removing it (as Solaris `chmod -R' touches
## FIXME there's got to be a better way! pathchk should take the list
## of files on stdin, at least.
find . -print | xargs pathchk -p); \
- status=$$?; \
+ estatus=$$?; \
find $(distdir) -type d '!' -perm -200 -exec chmod u+w {} ';'; \
rm -rf $(distdir); \
- exit $$status
+ exit $$estatus
## Program to use to fetch files.
WGET = wget
path-check: distdir
(cd $(distdir) && \
find . -print | xargs pathchk -p); \
- status=$$?; \
+ estatus=$$?; \
find $(distdir) -type d '!' -perm -200 -exec chmod u+w {} ';'; \
rm -rf $(distdir); \
- exit $$status
+ exit $$estatus
fetch:
rm -rf Fetchdir > /dev/null 2>&1