Skip to content

Commit f9d69eb

Browse files
committed
Use shell_exec because the grinch has taken away my backticks
1 parent 03edfff commit f9d69eb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.build.scripts/make-release.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ function createVersion( $project_id, $release_version )
150150

151151
function updateGIT( bool $from_master )
152152
{
153-
`git checkout master`;
154-
`git pull origin master`;
153+
shell_exec('git checkout master');
154+
shell_exec('git pull origin master');
155155

156156
if ( !$from_master )
157157
{
158-
`git checkout xdebug_3_5`;
159-
`git pull origin xdebug_3_5`;
158+
shell_exec('git checkout xdebug_3_5');
159+
shell_exec('git pull origin xdebug_3_5');
160160
}
161161
}
162162

@@ -183,7 +183,7 @@ function updatePhpXdebugH( $release_version )
183183
function rebuild()
184184
{
185185
echo "Rebuilding Xdebug binary:\n";
186-
`~/bin/rebuild.sh`;
186+
shell_exec('~/bin/rebuild.sh');
187187
}
188188

189189
function updateIniFileInDocs()
@@ -192,7 +192,7 @@ function updateIniFileInDocs()
192192

193193
$cwd = getcwd();
194194
chdir( $xdebugOrgRepo );
195-
`php html/docs/convert.php > {$xdebugRepo}/xdebug.ini`;
195+
shell_exec("php html/docs/convert.php > {$xdebugRepo}/xdebug.ini");
196196

197197
chdir( $cwd );
198198
}
@@ -339,7 +339,7 @@ function createNewsTemplate( $release_version )
339339

340340
$cwd = getcwd();
341341
chdir( $xdebugOrgRepo );
342-
`git add data/news/{$date}.html`;
342+
shell_exec("git add data/news/{$date}.html");
343343

344344
chdir( $cwd );
345345
}

0 commit comments

Comments
 (0)