s4-tests: Ldap tests now use the get_dsheuristics and set_dsheuristics from SamDB.
[Samba/gebeck_regimport.git] / source4 / heimdal_build / asn1_compile_wrapper.sh
blobc449bf80657642adccaedfbc36c62d760b6efbd6
1 #!/bin/sh
4 SELF=$0
5 SELFDIR=`dirname ${SELF}`
7 BUILDDIR=$1
8 DESTDIR=$2
10 CMD=$3
11 FILE=$4
12 NAME=$5
13 shift 5
14 OPTIONS="$@"
16 test -z "${BUILDDIR}" && {
17 echo "${SELF}:BUILDDIR: '${BUILDDIR}'" >&2;
18 exit 1;
21 test -z "${DESTDIR}" && {
22 echo "${SELF}:DESTDIR: '${DESTDIR}'" >&2;
23 exit 1;
26 test -z "${CMD}" && {
27 echo "${SELF}:CMD: '${CMD}'" >&2;
28 exit 1;
31 test -z "${FILE}" && {
32 echo "${SELF}:FILE: '${FILE}'" >&2;
33 exit 1;
36 test -z "${NAME}" && {
37 echo "${SELF}:NAME: '${NAME}'" >&2;
38 exit 1;
41 CURDIR=`pwd`
43 cd ${BUILDDIR} && {
44 ABS_BUILDDIR=`pwd`
45 cd ${CURDIR}
46 } || {
47 echo "${SELF}:cannot cd into '${BUILDDIR}'" >&2;
48 exit 1;
51 cd ${DESTDIR} && {
52 ${ABS_BUILDDIR}/${CMD} ${OPTIONS} ${FILE} ${NAME} >&2 || exit 1;
53 cd ${CURDIR}
54 } || {
55 echo "${SELF}:cannot cd into '${BUILDDIR}'" >&2;
56 exit 1;
59 exit 0;