5 SELFDIR
=`dirname ${SELF}`
15 test -z "${BUILDDIR}" && {
16 echo "${SELF}:BUILDDIR: '${BUILDDIR}'" >&2;
20 test -z "${DESTDIR}" && {
21 echo "${SELF}:DESTDIR: '${DESTDIR}'" >&2;
26 echo "${SELF}:CMD: '${CMD}'" >&2;
30 test -z "${FILE}" && {
31 echo "${SELF}:FILE: '${FILE}'" >&2;
35 test -z "${SOURCE}" && {
36 echo "${SELF}:SOURCE: '${SOURCE}'" >&2;
46 echo "${SELF}:cannot cd into '${BUILDDIR}'" >&2;
51 ${ABS_BUILDDIR}/${CMD} ${FILE} >&2 ||
exit 1;
54 mv ${SOURCE} ${TMP} && {
55 echo "#include \"config.h\"" > ${SOURCE} && {
56 cat ${TMP} >> ${SOURCE}
61 echo "${SELF}:cannot cd into '${BUILDDIR}'" >&2;