5 SELFDIR
=`dirname "${SELF}"`
13 test -z "${DESTDIR}" && {
14 echo "${SELF}:DESTDIR: '${DESTDIR}'" >&2;
19 echo "${SELF}:CMD: '${CMD}'" >&2;
23 test -z "${FILE}" && {
24 echo "${SELF}:FILE: '${FILE}'" >&2;
28 test -z "${SOURCE}" && {
29 echo "${SELF}:SOURCE: '${SOURCE}'" >&2;
36 # Remove older copies beforehand - MIT's compile_et uses odd permissions for these
37 # files, which makes Heimdal's compile_et fail mysteriously when writing to them.
38 rm -f `basename "${FILE}" .et`.c
39 rm -f `basename "${FILE}" .et`.h
40 "${CMD}" "${FILE}" >&2 ||
exit 1;
43 mv "${SOURCE}" "${TMP}" && {
44 echo "#include \"config.h\"" > "${SOURCE}" && {
45 cat "${TMP}" >> "${SOURCE}"
50 echo "${SELF}:cannot cd into '${DESTDIR}'" >&2;