- "$PHP5PATH"php GenCode.php $SCHEMA '' $GENCODE_CMS
-fi
-
-# someone might want to use empty password for development,
-# let's make it possible - we asked before.
-if [ -z $DBPASS ]; then # password still empty
- PASSWDSECTION=""
-else
- PASSWDSECTION="-p$DBPASS"
-fi
-
-HOSTSECTTION=""
-if [ ! -z "$DBHOST" ]; then
- HOSTSECTION="-h $DBHOST"
-fi
-
-PORTSECTION=""
-if [ ! -z "$DBPORT" ]; then
- PORTSECTION="-P $DBPORT"
+ if [ -z "$DBPORT" ]; then
+ PHP_MYSQL_HOSTPORT="$DBHOST"
+ else
+ PHP_MYSQL_HOSTPORT="$DBHOST:$DBPORT"
+ fi
+ "$PHP5PATH"php -d mysql.default_host="$PHP_MYSQL_HOSTPORT" -d mysql.default_user=$DBUSER -d mysql.default_password=$DBPASS GenCode.php $SCHEMA '' ${GENCODE_CMS}