#!/bin/sh if [ ${II2BUILDSTAMP} -lt 1074474470 ] then echo "### ${PROGNAME}: You need at least i-Installer 2.41.0 to install this package. Bailing out..." >&2 exit 1 fi PROGNAME=`"${II2RESOURCES}/basename" "$0"` echo "### ${PROGNAME}: Started..." if [ "${II2INSTALLDIR}" == "" ] then echo "### ${PROGNAME}: II2INSTALLDIR is empty. Bailing out..." >&2 exit 1 fi mkdir -p "${II2INSTALLDIR}/bin" >/dev/null 2>&1 mkdir -p "${II2INSTALLDIR}/include" >/dev/null 2>&1 mkdir -p "${II2INSTALLDIR}/lib" >/dev/null 2>&1 mkdir -p "${II2INSTALLDIR}/share" >/dev/null 2>&1 mkdir -p "${II2INSTALLDIR}/man/man1" >/dev/null 2>&1 if [ ! -w "${II2INSTALLDIR}/bin" -o ! -d "${II2INSTALLDIR}/bin" -o \ ! -w "${II2INSTALLDIR}/share" -o ! -d "${II2INSTALLDIR}/share" -o \ ! -w "${II2INSTALLDIR}/include" -o ! -d "${II2INSTALLDIR}/include" -o \ ! -w "${II2INSTALLDIR}/man/man1" -o ! -d "${II2INSTALLDIR}/man/man1" -o \ ! -w "${II2INSTALLDIR}/lib" -o ! -d "${II2INSTALLDIR}/lib" ] then echo "### ${PROGNAME}: Cannot write in directories ${II2INSTALLDIR}/{bin,lib,include,man/man1,share}. Bailing out..." >&2 exit 1 fi echo "### ${PROGNAME}: Finished." exit 0 # $Id: wvWare.prepare,v 1.1.1.1 2004/02/03 21:36:25 gctwnl Exp $