Skip to content

Commit d5018f3

Browse files
author
dorgan@donaldorgan.com
committed
Cleaning up so that application uses DIRECTORY_SEPARATOR constant
1 parent 14a71b7 commit d5018f3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

application/androBuild.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10080,23 +10080,23 @@ function FS_PrepareMake() {
1008010080

1008110081
$this->LogEntry("Copying /root files into root directory...");
1008210082
if(isWindows()) {
10083-
$cmd="copy \"$dir_pubx\\root\\*\" \"$dir_pubx\"\\";
10084-
$cmd=str_replace('/','\\',$cmd);
10083+
$cmd="copy \"$dir_pubx" .DIRECTORY_SEPARATOR ."root" .DIRECTORY_SEPARATOR ."*\" \"$dir_pubx" .DIRECTORY_SEPARATOR ."\"";
10084+
//$cmd=str_replace('/','\\',$cmd);
1008510085
$this->LogEntry(" ".$cmd);
1008610086
`$cmd`;
10087-
$cmd="copy \"$dir_pubx/root/htaccess\" \"$dir_pubx/.htaccess\"";
10088-
$cmd=str_replace('/','\\',$cmd);
10087+
$cmd="copy \"$dir_pubx" ..DIRECTORY_SEPARATOR ."root" .DIRECTORY_SEPARATOR ."htaccess\" \"$dir_pubx" .DIRECTORY_SEPARATOR .".htaccess\"";
10088+
//$cmd=str_replace('/','\\',$cmd);
1008910089
$this->LogEntry(" ".$cmd);
1009010090
`$cmd`;
10091-
$cmd = "del \"$dir_pubx\\htaccess\"";
10092-
$cmd=str_replace('/','\\',$cmd);
10091+
$cmd = "del \"$dir_pubx" .DIRECTORY_SEPARATOR ."htaccess\"";
10092+
//$cmd=str_replace('/','\\',$cmd);
1009310093
$this->LogEntry(" ".$cmd);
1009410094
`$cmd`;
1009510095
}
1009610096
else {
10097-
$cmd="cp $dir_pubx/root/* $dir_pubx/";
10097+
$cmd="cp $dir_pubx" .DIRECTORY_SEPARATOR ."root" .DIRECTORY_SEPARATOR "* $dir_pubx" .DIRECTORY_SEPARATOR;
1009810098
`$cmd`;
10099-
$cmd="cp $dir_pubx/root/htaccess $dir_pubx/.htaccess";
10099+
$cmd="cp $dir_pubx" .DIRECTORY_SEPARATOR ."root" .DIRECTORY_SEPARATOR ."htaccess $dir_pubx" .DIRECTORY_SEPARATOR .".htaccess";
1010010100
`$cmd`;
1010110101
`rm $dir_pubx/htaccess`;
1010210102
}

0 commit comments

Comments
 (0)