diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2011-09-19 13:56:26 +0200 |
---|---|---|
committer | Tomas Chvatal <tchvatal@suse.cz> | 2011-09-19 20:33:56 +0200 |
commit | af37c0a988109b3b38e68591a5e9a7ea39e2c2a7 (patch) | |
tree | 426e726ff9e19535b1645ecbf2c0e26e1125bb0d /sysui | |
parent | 03996d64c7fceec611a6a40e42a39e9ad0237ceb (diff) |
Use PREFIXDIR when possible
Diffstat (limited to 'sysui')
-rwxr-xr-x | sysui/desktop/share/create_tree.sh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sysui/desktop/share/create_tree.sh b/sysui/desktop/share/create_tree.sh index 141e9a10d4ea..a694f6d770f4 100755 --- a/sysui/desktop/share/create_tree.sh +++ b/sysui/desktop/share/create_tree.sh @@ -42,31 +42,31 @@ if [ "${GNOMEDIR}" ]; then chmod 0644 "${DESTDIR}/${GNOMEDIR}/share/application-registry/${PREFIX}".* fi -mkdir -p "${DESTDIR}/usr/bin" +mkdir -p "${DESTDIR}$PREFIXDIR/bin" test -n "${OFFICE_PREFIX}" && office_prefix="${OFFICE_PREFIX}" || office_prefix=/opt office_root=${office_prefix}/${PREFIX} #this symlink is needed to have the API boostrap functions running right -ln -sf "${office_root}/program/soffice" "${DESTDIR}/usr/bin/${PREFIX}" +ln -sf "${office_root}/program/soffice" "${DESTDIR}$PREFIXDIR/bin/${PREFIX}" -cp printeradmin.sh "${DESTDIR}/usr/bin/${PREFIX}-printeradmin" -chmod 0755 "${DESTDIR}/usr/bin/${PREFIX}-printeradmin" +cp printeradmin.sh "${DESTDIR}$PREFIXDIR/bin/${PREFIX}-printeradmin" +chmod 0755 "${DESTDIR}$PREFIXDIR/bin/${PREFIX}-printeradmin" if test "${PREFIX}" != libreoffice${PRODUCTVERSION} ; then # compat symlinks mkdir -p "${DESTDIR}${office_prefix}" ln -sf libreoffice${PRODUCTVERSION} "${DESTDIR}${office_root}" - ln -sf /usr/bin/${PREFIX} "${DESTDIR}/usr/bin/libreoffice${PRODUCTVERSION}" - ln -sf /usr/bin/${PREFIX}-printeradmin "${DESTDIR}/usr/bin/libreoffice${PRODUCTVERSION}-printeradmin" + ln -sf $PREFIXDIR/bin/${PREFIX} "${DESTDIR}$PREFIXDIR/bin/libreoffice${PRODUCTVERSION}" + ln -sf $PREFIXDIR/bin/${PREFIX}-printeradmin "${DESTDIR}$PREFIXDIR/bin/libreoffice${PRODUCTVERSION}-printeradmin" fi -mkdir -p "${DESTDIR}/usr/share/mime/packages" -cp openoffice.org.xml "${DESTDIR}/usr/share/mime/packages/libreoffice${PRODUCTVERSION}.xml" -chmod 0644 "${DESTDIR}/usr/share/mime/packages/libreoffice${PRODUCTVERSION}.xml" +mkdir -p "${DESTDIR}$PREFIXDIR/share/mime/packages" +cp openoffice.org.xml "${DESTDIR}$PREFIXDIR/share/mime/packages/libreoffice${PRODUCTVERSION}.xml" +chmod 0644 "${DESTDIR}$PREFIXDIR/share/mime/packages/libreoffice${PRODUCTVERSION}.xml" -mkdir -p "${DESTDIR}/usr/share/applications" +mkdir -p "${DESTDIR}$PREFIXDIR/share/applications" for i in `cat launcherlist`; do - ln -sf "${office_root}/share/xdg/${i}" "${DESTDIR}/usr/share/applications/${PREFIX}-${i}" + ln -sf "${office_root}/share/xdg/${i}" "${DESTDIR}$PREFIXDIR/share/applications/${PREFIX}-${i}" done |