Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
0eab525a
Commit
0eab525a
authored
Jun 25, 2007
by
nicobn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made bundle.php more intelligent.
parent
ab1f1de9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
bundle.php
tools/cli/bundle.php
+16
-4
No files found.
tools/cli/bundle.php
View file @
0eab525a
...
...
@@ -3,12 +3,24 @@
* Small command line script to bundle Doctrine classes.
*/
if
(
count
(
$argv
)
<
2
)
{
echo
"Usage: bundle.php <Doctrine basedir> <Target dir>"
;
echo
"Usage: bundle.php [Target directory] <Library directory>
\n\n
"
.
"Note: If the library directory is ommited, the path will be deducted
\n
"
;
exit
(
1
);
}
else
if
(
count
(
$argv
)
==
3
)
{
$doctrineBaseDir
=
$argv
[
2
];
}
else
{
$doctrineBaseDir
=
str_replace
(
'tools/cli'
,
'lib'
,
$_SERVER
[
'PWD'
],
$Cnt
);
if
(
$Cnt
!=
1
)
{
echo
"Can't find library directory, please specify it as an argument
\n
"
;
exit
(
1
);
}
}
$doctrineBaseDir
=
$argv
[
1
];
$targetDir
=
$argv
[
2
];
$targetDir
=
$argv
[
1
];
print
"target:
$targetDir
\n
"
;
print
"base dire:
$doctrineBaseDir
\n
"
;
set_include_path
(
get_include_path
()
.
PATH_SEPARATOR
.
$doctrineBaseDir
);
...
...
@@ -24,4 +36,4 @@ Doctrine_Compiler::compile($targetDir);
echo
"Bundle complete."
.
PHP_EOL
;
exit
(
0
);
?>
\ No newline at end of file
?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment