Is this necessary? All the headers install for me, and did again
last
night with building 21.2-b38.
If you build *inside* the XEmacs source tree, then it is not necessary,
since $hdir contains only one value, and therefore $thisdir == $hdir,
and the loop is executed exactly once.
If you build *outside* the XEmacs source tree (like I do, due to
supporting multiple architectures), then it is necessary, since $hdir
contains two values. As the code stands, it will cd to the same
directory (the build directory, as it happens) on both iterations of the
loop and so will fail to ever cd to the source directory containing
header files. The loop is executed twice, but does the same thing both
times.
Try building outside the source tree. The header files don't get
installed.
--
Jerry James