[Svn] r2200 - branches/release-0.2-stable/bin

trac at roundcube.net trac at roundcube.net
Tue Dec 30 15:24:39 CET 2008


Author: thomasb
Date: 2008-12-30 08:24:39 -0600 (Tue, 30 Dec 2008)
New Revision: 2200

Removed:
   branches/release-0.2-stable/bin/dumpschema.php
   branches/release-0.2-stable/bin/makedoc.sh
Log:
Remove development scripts

Deleted: branches/release-0.2-stable/bin/dumpschema.php
===================================================================
--- branches/release-0.2-stable/bin/dumpschema.php	2008-12-30 14:07:20 UTC (rev 2199)
+++ branches/release-0.2-stable/bin/dumpschema.php	2008-12-30 14:24:39 UTC (rev 2200)
@@ -1,97 +0,0 @@
-<?php
-/*
- #!/usr/bin/php
-
- +-----------------------------------------------------------------------+
- | bin/dumpschema.php                                                    |
- |                                                                       |
- | This file is part of the RoundCube Webmail client                     |
- | Copyright (C) 2005-2008, RoundCube Dev. - Switzerland                 |
- | Licensed under the GNU GPL                                            |
- |                                                                       |
- | PURPOSE:                                                              |
- |   Dumps database schema in XML format using MDB2_Schema               |
- |                                                                       |
- +-----------------------------------------------------------------------+
- | Author: Thomas Bruederli <roundcube at gmail.com>                        |
- +-----------------------------------------------------------------------+
-
- $Id$
-
-*/
-
-define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
-require INSTALL_PATH.'program/include/iniset.php';
-
-/** callback function for schema dump **/
-function print_schema($dump)
-{
-	foreach ((array)$dump as $part)
-		echo $dump . "\n";
-}
-
-$config = new rcube_config();
-
-// don't allow public access if not in devel_mode
-if (!$config->get('devel_mode') && $_SERVER['REMOTE_ADDR']) {
-	header("HTTP/1.0 401 Access denied");
-	die("Access denied!");
-}
-
-$options = array(
-	'use_transactions' => false,
-	'log_line_break' => "\n",
-	'idxname_format' => '%s',
-	'debug' => false,
-	'quote_identifier' => true,
-	'force_defaults' => false,
-	'portability' => false,
-);
-
-$dsnw = $config->get('db_dsnw');
-$dsn_array = MDB2::parseDSN($dsnw);
-
-// set options for postgres databases
-if ($dsn_array['phptype'] == 'pgsql') {
-	$options['disable_smart_seqname'] = true;
-	$options['seqname_format'] = '%s';
-}
-
-$schema =& MDB2_Schema::factory($dsnw, $options);
-$schema->db->supported['transactions'] = false;
-
-
-// send as text/xml when opened in browser
-if ($_SERVER['REMOTE_ADDR'])
-	header('Content-Type: text/xml');
-
-
-if (PEAR::isError($schema)) {
-	$error = $schema->getMessage() . ' ' . $schema->getUserInfo();
-}
-else {
-	$dump_config = array(
-		// 'output_mode' => 'file',
-		'output' => 'print_schema',
-	);
-	
-	$definition = $schema->getDefinitionFromDatabase();
-	$definition['charset'] = 'utf8';
-
-	if (PEAR::isError($definition)) {
-		$error = $definition->getMessage() . ' ' . $definition->getUserInfo();
-	}
-	else {
-		$operation = $schema->dumpDatabase($definition, $dump_config, MDB2_SCHEMA_DUMP_STRUCTURE);
-		if (PEAR::isError($operation)) {
-			$error = $operation->getMessage() . ' ' . $operation->getUserInfo();
-		}
-	}
-}
-
-$schema->disconnect();
-
-if ($error && !$_SERVER['REMOTE_ADDR'])
-	fputs(STDERR, $error);
-
-?>

Deleted: branches/release-0.2-stable/bin/makedoc.sh
===================================================================
--- branches/release-0.2-stable/bin/makedoc.sh	2008-12-30 14:07:20 UTC (rev 2199)
+++ branches/release-0.2-stable/bin/makedoc.sh	2008-12-30 14:24:39 UTC (rev 2200)
@@ -1,29 +0,0 @@
-#!/bin/bash
-
-TITLE="RoundCube Classes"
-PACKAGES="Core"
-
-INSTALL_PATH="`dirname $0`/.."
-PATH_PROJECT=$INSTALL_PATH/program/include
-PATH_DOCS=$INSTALL_PATH/doc/phpdoc
-
-if [ -x /usr/local/php5/bin/phpdoc ]
-then
-  PATH_PHPDOC=/usr/local/php5/bin/phpdoc
-elif [ -x /usr/bin/phpdoc ]
-then
-  PATH_PHPDOC=/usr/bin/phpdoc
-else
-  echo "phpdoc not found"
-  exit 1
-fi
-
-OUTPUTFORMAT=HTML
-CONVERTER=frames
-TEMPLATE=earthli
-PRIVATE=off
-
-# make documentation
-$PATH_PHPDOC -d $PATH_PROJECT -t $PATH_DOCS -ti "$TITLE" -dn $PACKAGES \
--o $OUTPUTFORMAT:$CONVERTER:$TEMPLATE -pp $PRIVATE
-

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list