mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
7055827b8f
This makes it clearer that we always want to do heimdal changes via the lorikeet-heimdal repository. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz> Autobuild-User(master): Joseph Sutton <jsutton@samba.org> Autobuild-Date(master): Wed Jan 19 21:41:59 UTC 2022 on sn-devel-184
60 lines
808 B
Bash
Executable File
60 lines
808 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
|
|
SELF=$0
|
|
SELFDIR=`dirname ${SELF}`
|
|
|
|
BUILDDIR=$1
|
|
DESTDIR=$2
|
|
|
|
CMD=$3
|
|
FILE=$4
|
|
NAME=$5
|
|
shift 5
|
|
OPTIONS="$@"
|
|
|
|
test -z "${BUILDDIR}" && {
|
|
echo "${SELF}:BUILDDIR: '${BUILDDIR}'" >&2;
|
|
exit 1;
|
|
}
|
|
|
|
test -z "${DESTDIR}" && {
|
|
echo "${SELF}:DESTDIR: '${DESTDIR}'" >&2;
|
|
exit 1;
|
|
}
|
|
|
|
test -z "${CMD}" && {
|
|
echo "${SELF}:CMD: '${CMD}'" >&2;
|
|
exit 1;
|
|
}
|
|
|
|
test -z "${FILE}" && {
|
|
echo "${SELF}:FILE: '${FILE}'" >&2;
|
|
exit 1;
|
|
}
|
|
|
|
test -z "${NAME}" && {
|
|
echo "${SELF}:NAME: '${NAME}'" >&2;
|
|
exit 1;
|
|
}
|
|
|
|
CURDIR=`pwd`
|
|
|
|
cd ${BUILDDIR} && {
|
|
ABS_BUILDDIR=`pwd`
|
|
cd ${CURDIR}
|
|
} || {
|
|
echo "${SELF}:cannot cd into '${BUILDDIR}'" >&2;
|
|
exit 1;
|
|
}
|
|
|
|
cd ${DESTDIR} && {
|
|
${ABS_BUILDDIR}/${CMD} ${OPTIONS} ${FILE} ${NAME} >&2 || exit 1;
|
|
cd ${CURDIR}
|
|
} || {
|
|
echo "${SELF}:cannot cd into '${BUILDDIR}'" >&2;
|
|
exit 1;
|
|
}
|
|
|
|
exit 0;
|