Subject: subst.mk only for text files
To: None <tech-pkg@NetBSD.org>
From: Klaus Heinz <email@example.com>
Date: 12/12/2003 01:12:33
today, using pkgsrc/mk/subst.mk I encountered a small problem on Solaris
where a file was not altered because the test _SUBST_IS_TEXT_FILE (used
to verify that only text files are changed) failed. /usr/bin/file on
Solaris uses some output strings different from NetBSD's "file" command
and the egrep regular expression didn't catch this output.
I could work around the problem by changing the regular expression for
egrep in subst.mk but this made me wonder why the test is there at all.
Could anyone explain the reason behind this?
A package creator using subst.mk knows which files will be changed
and I cannot see the need for a runtime test like this.