if [ -z "$PKG_INSTALL_ROOT" ]; then BASE=$CLIENT_BASEDIR else BASE=${PKG_INSTALL_ROOT}$CLIENT_BASEDIR fi FILES="mysql/bin/msql2mysql mysql/bin/mysql_fix_privilege_tables mysql/bin/mysql_install_db mysql/bin/mysql_upgrade_shell mysql/bin/mysqlaccess mysql/bin/mysqld_multi mysql/bin/mysqld_safe mysql/share/man/man1/mysqld_multi.1 mysql/share/man/man1/mysqld_safe.1 mysql/share/man/man8/mysqlmanager.8 mysql/share/mysql/mysql-log-rotate mysql/share/mysql/mysql.server" for f in $FILES; do if [ -f ${BASE}/$f ]; then sed -e "s#@MYCLIENTDIR@#${MYCLIENTDIR}#g" -e "s#@CLIENT_BASEDIR@#${CLIENT_BASEDIR}#g" ${BASE}/$f >${PKGSAV}/tmp cp ${PKGSAV}/tmp ${BASE}/$f else echo "${BASE}/$f not found - not modified." fi done rm -f ${PKGSAV}/tmp echo " To initialize the mySQL database and to start it up, read the instructions from $CLIENT_BASEDIR/mysql/README!!! "