#!/bin/sh if test -z "${SRC_ROOT}"; then echo "distro-install-clean-up: No environment set!" exit 1 fi if test -d $DESTDIR$INSTALLDIR/sdk ; then echo "SDK installation clean up" # bin potential .orig files find $DESTDIR$INSTALLDIR/sdk -name "*.orig" -exec rm -f {} \; # move some SDK directories to the right place according to FHS # note that examples must stay in $DESTDIR$INSTALLDIR/sdk because there are used # relative paths to $DESTDIR$INSTALLDIR/sdk/setting and it does not work via # a symlink mkdir -p $DESTDIR$PREFIXDIR/include mkdir -p $DESTDIR$DATADIR/idl mkdir -p $DESTDIR$DATADIR/$INSTALLDIRNAME/sdk mkdir -p $DESTDIR$DOCDIR/sdk mv $DESTDIR$INSTALLDIR/sdk/include $DESTDIR$PREFIXDIR/include/$INSTALLDIRNAME if [ -d $DESTDIR$INSTALLDIR/sdk/classes ]; then mv $DESTDIR$INSTALLDIR/sdk/classes $DESTDIR$DATADIR/$INSTALLDIRNAME/sdk/classes fi mv $DESTDIR$INSTALLDIR/sdk/idl $DESTDIR$DATADIR/idl/$INSTALLDIRNAME mv $DESTDIR$INSTALLDIR/sdk/docs $DESTDIR$DOCDIR/sdk mv $DESTDIR$INSTALLDIR/sdk/share/readme $DESTDIR$DOCDIR/sdk/readme mv $DESTDIR$INSTALLDIR/sdk/index.html $DESTDIR$DOCDIR/sdk # compat symlinks ln -sf $PREFIXDIR/include/$INSTALLDIRNAME $DESTDIR$INSTALLDIR/sdk/include ln -sf $DATADIR/$INSTALLDIRNAME/sdk/classes $DESTDIR$INSTALLDIR/sdk/classes ln -sf $DATADIR/idl/$INSTALLDIRNAME $DESTDIR$INSTALLDIR/sdk/idl ln -sf $DOCDIR/sdk/docs $DESTDIR$INSTALLDIR/sdk/ ln -sf $DOCDIR/sdk/index.html $DESTDIR$INSTALLDIR/sdk/index.html ln -sf $INSTALLDIR/sdk/examples $DESTDIR$DOCDIR/sdk/examples # fix file list sed -e "s|^\(%dir \)\?$INSTALLDIR/sdk/include|\1$PREFIXDIR/include/$INSTALLDIRNAME|" \ -e "s|^\(%dir \)\?$INSTALLDIR/sdk/classes|\1$DATADIR/$INSTALLDIRNAME/sdk/classes|" \ -e "s|^\(%dir \)\?$INSTALLDIR/sdk/idl|\1$DATADIR/idl/$INSTALLDIRNAME|" \ -e "s|^\(%dir \)\?$INSTALLDIR/sdk/docs|\1$DOCDIR/sdk/docs|" \ -e "s|^\(%dir \)\?$INSTALLDIR/sdk/share/readme|\1$DOCDIR/sdk/readme|" \ -e "s|^$INSTALLDIR/sdk/index.html$|$DOCDIR/sdk/index.html|" \ -e "s|^\(%dir \)\?$INSTALLDIR/sdk/share.*$||" \ -e "/\.orig$/D" \ -e "/^$/D" \ $DESTDIR/gid_Module_Root_SDK | sort -u \ >$DESTDIR/gid_Module_Root_SDK.new mv $DESTDIR/gid_Module_Root_SDK.new $DESTDIR/gid_Module_Root_SDK # echo "%dir $DATADIR/$INSTALLDIRNAME/sdk" >>$DESTDIR/gid_Module_Root_SDK echo "%dir $DATADIR/$INSTALLDIRNAME" >>$DESTDIR/gid_Module_Root_SDK echo "%dir $DATADIR/idl" >>$DESTDIR/gid_Module_Root_SDK echo "%dir $DOCDIR/sdk/docs" >>$DESTDIR/gid_Module_Root_SDK echo "%dir $DOCDIR/sdk" >>$DESTDIR/gid_Module_Root_SDK echo "%dir $DOCDIR" >>$DESTDIR/gid_Module_Root_SDK echo "$INSTALLDIR/sdk/include" >>$DESTDIR/gid_Module_Root_SDK echo "$INSTALLDIR/sdk/classes" >>$DESTDIR/gid_Module_Root_SDK echo "$INSTALLDIR/sdk/idl" >>$DESTDIR/gid_Module_Root_SDK echo "$INSTALLDIR/sdk/docs" >>$DESTDIR/gid_Module_Root_SDK echo "$INSTALLDIR/sdk/index.html" >>$DESTDIR/gid_Module_Root_SDK echo "$DOCDIR/sdk/examples" >>$DESTDIR/gid_Module_Root_SDK # generate default profiles sed -e "s,@OO_SDK_NAME@,libreoffice${PRODUCTVERSION}_sdk," \ -e "s,@OO_SDK_HOME@,$INSTALLDIR/sdk," \ -e "s,@OFFICE_HOME@,$INSTALLDIR," \ -e "s,@OO_SDK_MAKE_HOME@,$(dirname $(command -v make))," \ -e "s,@OO_SDK_ZIP_HOME@,$(dirname $(command -v zip))," \ -e "s,@OO_SDK_CPP_HOME@,$(dirname $(command -v cpp))," \ -e "s,@OO_SDK_SED_HOME@,$(dirname $(command -v sed))," \ -e "s,@OO_SDK_CAT_HOME@,$(dirname $(command -v cat))," \ -e "s,@OO_SDK_JAVA_HOME@,$JAVA_HOME," \ -e "s,@OO_SDK_OUTPUT_DIR@,\$HOME," \ -e "s,@SDK_AUTO_DEPLOYMENT@,NO," \ $DESTDIR$INSTALLDIR/sdk/setsdkenv_unix.sh.in \ > $DESTDIR$INSTALLDIR/sdk/setsdkenv_unix.sh chmod 755 $DESTDIR$INSTALLDIR/sdk/setsdkenv_unix.sh echo $INSTALLDIR/sdk/setsdkenv_unix.sh >>$DESTDIR/gid_Module_Root_SDK fi o/collabora/cp-6.4'>distro/collabora/cp-6.4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/unoxml/qa
AgeCommit message (Expand)Author
2024-01-05std::size/SAL_N_ELEMENTS also counts the null terminatorCaolán McNamara
2022-11-06tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macrojsala
2022-04-12Recheck modules [uU]* with IWYUGabor Kelemen
2021-10-31Prepare for removal of non-const operator[] from Sequence in unoxmlMike Kaganski
2021-02-16loplugin:referencecasting in UnoControls..unoxmlNoel
2021-02-08Improve loplugin:cppunitassertequal for CPPUNIT_ASSERT(a && b)Stephan Bergmann
2020-07-02Upcoming improved loplugin:staticanonymous -> redundantstatic: unoxmlStephan Bergmann
2020-04-25make FastParser always take a FastTokenHandlerBase subclassNoel Grandin
2020-03-25Remove unused using declarations in oox...xmlsecurityGabor Kelemen
2020-01-09tdf#42949 Fix IWYU warnings in unoxml/Gabor Kelemen
2019-06-25Simplify Sequence iterations in unoxmlArkadiy Illarionov
2018-08-02Add missing sal/log.hxx headersGabor Kelemen
2018-06-05tdf#42949 remove unused compheler includes ..Jochen Nitschke
2018-04-13Fix typosAndrea Gelmini
2018-04-01remove unused processfactory.hxx includesJochen Nitschke
2017-09-06Typo exeption->exception (domtest.cxx)Julien Nabet
2017-08-25tdf#84237 use XErrorHandler in CDocumentBuilderFyodor Yemelyanenko
2017-06-15[API CHANGE] Add processingInstruction event to XFastDocumentHandler:Mohammed Abdul Azeem
2017-02-21loplugin:subtlezeroinit: unoxmlStephan Bergmann
2017-01-26Remove dynamic exception specificationsStephan Bergmann
2016-12-06Remove broken SAL_INFOStephan Bergmann
2016-12-06OSL_TRACE->SAL in unotools..uuiNoel Grandin
2015-11-05java: remove ((unnecessary)) parenthesesNoel Grandin
2015-10-30UNO: no need to use OUString constructor when calling createInstanceNoel Grandin
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
2015-09-30Fix typosAndrea Gelmini
2015-09-10unoxml: tdf#88206 replace cppu::WeakImplHelper* etc.Takeshi Abe