3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 # Basic argument checks
16 echo " make cmd cmd='$0 <rdb file> <idl file list>'"
19 echo " make cmd cmd='$0"
20 echo " offapi/type_reference/offapi.rdb"
21 echo " offapi/com/sun/star/auth/SSOManagerFactory.idl"
22 echo " offapi/com/sun/star/auth/SSOPasswordCache.idl'"
30 "${OUTDIR_FOR_BUILD?}"/bin
/regmerge
-v tmp
/out1.rdb
/UCR \
31 "${WORKDIR_FOR_BUILD?}"/UnoApiPartTarget
/"${i%.idl}".urd
33 "${OUTDIR_FOR_BUILD?}"/bin/regmerge -v tmp/out2.rdb / "${SRC_ROOT?}"/"${rdb?}" \
35 echo "sanity check diff:"
36 diff <("${OUTDIR_FOR_BUILD?}"/bin/regview "${SRC_ROOT?}"/"${rdb?}") \
37 <("${OUTDIR_FOR_BUILD?}"/bin
/regview tmp
/out2.rdb
) && $?
-le 1
38 mv tmp
/out2.rdb
"${SRC_ROOT?}"/"${rdb?}"