Skip to content

Commit

Permalink
Migrate adodb via composer to vendor directory.
Browse files Browse the repository at this point in the history
-Incorporated phing into package management.
  • Loading branch information
Scott Wakefield authored and bradymiller committed Jul 22, 2016
1 parent 340b2b3 commit 0f06ca8
Show file tree
Hide file tree
Showing 213 changed files with 3,249 additions and 13,095 deletions.
28 changes: 28 additions & 0 deletions build.xml
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>

<project name="OpenEMR" description="OpenEMR is a Free and Open Source electronic health records and medical practice management application" default="dist" basedir="." >

<property name="dir.src" value="${project.basedir}"/>
<property name="dir.vendor" value="${project.basedir}/vendor"/>

<target name="vendor-clean">
<echo msg="Trying to clean up vendor dir" />
<phingcall target="clean-vendor-dir">
</phingcall>
</target>


<target name="clean-vendor-dir">
<!-- Delete git files from vendor -->
<delete verbose="true">
<fileset dir="${dir.vendor}" includes="**/*.git*" defaultexcludes="false"/>
<fileset dir="${dir.vendor}" includes="**/*.cvs*" defaultexcludes="false"/>
</delete>

<delete dir="${dir.vendor}/adodb/adodb-php/tests" verbose="true"/>
<delete dir="${dir.vendor}/adodb/adodb-php/docs" verbose="true"/>

<delete dir="${dir.vendor}/smarty/smarty/demo" verbose="true"/>

</target>
</project>
20 changes: 13 additions & 7 deletions composer.json
@@ -1,17 +1,23 @@
{
"name": "openemr/openemr",
"description": "OpenEMR is a Free and Open Source electronic health records and medical practice management application",
"license": "GPL",
"name": "openemr/openemr",
"description": "OpenEMR is a Free and Open Source electronic health records and medical practice management application",
"license": "GPL",
"support": {
"website": "http://www.open-emr.org/",
"issues": "https://sourceforge.net/p/openemr/bugs/",
"forum": "https://sourceforge.net/p/openemr/discussion/",
"wiki": "http://www.open-emr.org/wiki/index.php/OpenEMR_Wiki_Home_Page",
"source": "http://github.com/openemr/openemr"
},
"require": {
"require": {

"smarty/smarty": "2.6.29"

}
"smarty/smarty": "2.6.29",
"adodb/adodb-php": "5.20.2"

},
"require-dev": {

"phing/phing": "2.14.0"

}
}
152 changes: 149 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gacl/gacl.class.php
Expand Up @@ -36,7 +36,7 @@
*/

if ( !defined('ADODB_DIR') ) {
define('ADODB_DIR', dirname(__FILE__).'/../library/adodb');
define('ADODB_DIR', dirname(__FILE__).'/../vendor/adodb/adodb-php');
}

//openemr configuration file - bm - 05-2009
Expand Down
4 changes: 2 additions & 2 deletions interface/main/calendar/includes/pnAPI.php
Expand Up @@ -346,7 +346,7 @@ function pnInit()

// ADODB configuration
if (!defined('ADODB_DIR')) {
define('ADODB_DIR', dirname(__FILE__) . '/../../../../library/adodb');
define('ADODB_DIR', dirname(__FILE__) . '/../../../../vendor/adodb/adodb-php');
}

require ADODB_DIR . '/adodb.inc.php';
Expand Down Expand Up @@ -1505,4 +1505,4 @@ function pnMailHackAttempt( $detecting_file = "(no filename availa
return;
}

?>
?>
30 changes: 0 additions & 30 deletions library/adodb/chris.php

This file was deleted.

108 changes: 0 additions & 108 deletions library/adodb/docs/adodb-faq.html

This file was deleted.

Binary file removed library/adodb/docs/adodb.gif
Binary file not shown.
Binary file removed library/adodb/docs/adodb2.gif
Binary file not shown.

0 comments on commit 0f06ca8

Please sign in to comment.