mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
1d6456fd60
we now call asn1_compile and compile_et via a wrapper script
metze
(This used to be commit a5b67f5c7e
)
74 lines
1.0 KiB
Bash
Executable File
74 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
#
|
|
|
|
SELF=$0
|
|
SELFDIR=`dirname ${SELF}`
|
|
|
|
SRCDIR=$1
|
|
BUILDDIR=$2
|
|
DESTDIR=$3
|
|
|
|
CMD=$4
|
|
FILE=$5
|
|
NAME=$6
|
|
shift 6
|
|
OPTIONS="$@"
|
|
|
|
test -z "${SRCDIR}" && {
|
|
echo "${SELF}:SRCDIR: '${SRCDIR}'" >&2;
|
|
exit 1;
|
|
}
|
|
|
|
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 ${SRCDIR} && {
|
|
ABS_SRCDIR=`pwd`
|
|
cd ${CURDIR}
|
|
} || {
|
|
echo "${SELF}:cannot cd into '${SRCDIR}'" >&2;
|
|
exit 1;
|
|
}
|
|
|
|
cd ${BUILDDIR} && {
|
|
ABS_BUILDDIR=`pwd`
|
|
cd ${CURDIR}
|
|
} || {
|
|
echo "${SELF}:cannot cd into '${BUILDDIR}'" >&2;
|
|
exit 1;
|
|
}
|
|
|
|
cd ${DESTDIR} && {
|
|
${ABS_BUILDDIR}/${CMD} ${OPTIONS} ${ABS_SRCDIR}/${FILE} ${NAME} >&2 || exit 1;
|
|
cd ${CURDIR}
|
|
} || {
|
|
echo "${SELF}:cannot cd into '${BUILDDIR}'" >&2;
|
|
exit 1;
|
|
}
|
|
|
|
exit 0;
|