#!/bin/sh if [ ! -x "${II2RESOURCES}/basename" ] then echo "### This package needs a newer version of i-Installer. Bailing out...\n" >&2 exit 1 fi PROGNAME=`"${II2RESOURCES}/basename" "$0"` echo "### ${PROGNAME}: Started..." if [ ! -d "${II2INSTALLDIR}/bin" -o \ ! -d "${II2INSTALLDIR}/share" -o \ ! -d "${II2INSTALLDIR}/include" -o \ ! -d "${II2INSTALLDIR}/man/man1" -o \ ! -d "${II2INSTALLDIR}/lib" ] then echo "### ${PROGNAME}: Cannot find directories ${II2INSTALLDIR}/{bin,lib,include,man/man1,share}." echo "### ${PROGNAME}: Cannot remove nonexistent wvWare. Bailing out gracefully..." exit 0 fi if [ ! -w "${II2INSTALLDIR}" -o \ ! -w "${II2INSTALLDIR}/bin" -o \ ! -w "${II2INSTALLDIR}/share" -o \ ! -w "${II2INSTALLDIR}/include" -o \ ! -w "${II2INSTALLDIR}/man/man1" -o \ ! -w "${II2INSTALLDIR}/lib" ] then echo "### ${PROGNAME}: Cannot write in directories ${II2INSTALLDIR}/{bin,lib,include,man/man1,share}. Bailing out..." >&2 exit 1 fi (cd "${II2INSTALLDIR}" && \ rm -rf ./share/wv/ ./man/man1/wvWare.1 ./man/man1/wvHtml.1 ./man/man1/wvLatex.1 ./man/man1/wvCleanLatex.1 ./man/man1/wvDVI.1 ./man/man1/wvPS.1 ./man/man1/wvPDF.1 ./man/man1/wvText.1 ./man/man1/wvWml.1 ./man/man1/wvAbw.1 ./man/man1/wvRTF.1 ./man/man1/wvMime.1 ./man/man1/wvVersion.1 ./man/man1/wvSummary.1 ./include/wv/ ./lib/libwv.la ./lib/libwv.a ./lib/pkgconfig/wv-1.0.pc ./bin/wvSummary ./bin/wvWare ./bin/wvRTF ./bin/wvConvert ./bin/wvVersion ./bin/wvCleanLatex ./bin/wvHtml ./bin/wvDocBook ./bin/wvAbw ./bin/wvMime ./bin/wvPS ./bin/wvDVI ./bin/wvLatex ./bin/wvPDF ./bin/wvText ./bin/wvWml rmdir -p bin include lib/pkgconfig share/wv man/man1 >/dev/null 2>&1 ) echo "### ${PROGNAME}: Finished." exit 0 # $Id: wvWare.remove,v 1.1.1.1 2004/02/03 21:36:25 gctwnl Exp $