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
325f0cc4
Commit
325f0cc4
authored
Jun 26, 2007
by
nicobn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib directory deduction now covers all possible cases.
parent
f3245d43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
bundle.php
tools/cli/bundle.php
+10
-3
No files found.
tools/cli/bundle.php
View file @
325f0cc4
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
* @link www.phpdoctrine.com
* @link www.phpdoctrine.com
* @since 1.0
* @since 1.0
*/
*/
if
(
count
(
$argv
)
<
2
)
{
if
(
count
(
$argv
)
<
2
)
{
echo
"Usage: bundle.php [Target file] <Library directory>
\n\n
"
.
echo
"Usage: bundle.php [Target file] <Library directory>
\n\n
"
.
"Note: If the library directory is ommited, the path will be deducted if possible
\n
"
;
"Note: If the library directory is ommited, the path will be deducted if possible
\n
"
;
...
@@ -39,8 +39,15 @@ if (count($argv) < 2) {
...
@@ -39,8 +39,15 @@ if (count($argv) < 2) {
}
else
{
}
else
{
$pathInfos
=
pathinfo
(
$_SERVER
[
'PHP_SELF'
]);
$pathInfos
=
pathinfo
(
$_SERVER
[
'PHP_SELF'
]);
$doctrineBaseDir
=
str_replace
(
'tools/cli/'
.
$pathInfos
[
'basename'
],
$Cnt
=
0
;
'lib'
,
getcwd
()
.
'/'
.
$_SERVER
[
'SCRIPT_NAME'
],
$Cnt
);
if
(
$_SERVER
[
'PHP_SELF'
][
0
]
==
'/'
)
{
$doctrineBaseDir
=
str_replace
(
'tools/cli/'
.
$pathInfos
[
'basename'
],
'lib'
,
$_SERVER
[
'SCRIPT_NAME'
],
&
$Cnt
);
}
else
{
$doctrineBaseDir
=
str_replace
(
'tools/cli/'
.
$pathInfos
[
'basename'
],
'lib'
,
getcwd
()
.
'/'
.
$_SERVER
[
'SCRIPT_NAME'
],
&
$Cnt
);
}
if
(
$Cnt
!=
1
)
{
if
(
$Cnt
!=
1
)
{
echo
"Can't find library directory, please specify it as an argument
\n
"
;
echo
"Can't find library directory, please specify it as an argument
\n
"
;
...
...
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