Skip to content

Commit 59621bf

Browse files
authored
Manage completion permissions through source control (#299)
Remove the executable bit from the completion file: it is sourced and should never have been executable. The globbetyglob()/make_scripts_executable() functions, introduced in ae7bebe ("Add autoconf && ./configure && make test_xml replacement", 2007-09-08), are no longer needed. Executable bits are now managed by version control, so the functions are removed as well.
1 parent 4c54e12 commit 59621bf

2 files changed

Lines changed: 0 additions & 23 deletions

File tree

configure.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@
4848
// phd_version() done
4949
// php_history() done
5050

51-
// ugly: make_scripts_executable
52-
5351
const RNG_SCHEMA_DIR = __DIR__ . DIRECTORY_SEPARATOR . 'docbook' . DIRECTORY_SEPARATOR . 'docbook-5.2.1' . DIRECTORY_SEPARATOR . 'rng' . DIRECTORY_SEPARATOR;
5452
const RNG_SCHEMA_FILE = RNG_SCHEMA_DIR . 'docbook.rng';
5553
const RNG_SCHEMA_XINCLUDE_FILE = RNG_SCHEMA_DIR . 'docbookxi.rng';
@@ -192,25 +190,6 @@ function find_file($file_array) // {{{
192190
return '';
193191
} // }}}
194192

195-
// Recursive glob() with a callback function {{{
196-
function globbetyglob($globber, $userfunc)
197-
{
198-
foreach (glob("$globber/*") as $file) {
199-
if (is_dir($file)) {
200-
globbetyglob($file, $userfunc);
201-
} else {
202-
call_user_func($userfunc, $file);
203-
}
204-
}
205-
} // }}}
206-
207-
function make_scripts_executable($filename) // {{{
208-
{
209-
if (substr($filename, -3) == '.sh') {
210-
chmod($filename, 0755);
211-
}
212-
} // }}}
213-
214193
function print_xml_errors()
215194
{
216195
global $ac;
@@ -532,8 +511,6 @@ function find_xml_files($path) // {{{
532511
$ac["ONLYDIR"] = dirname(realpath($ac["GENERATE"]));
533512
}
534513

535-
globbetyglob("{$ac['basedir']}/scripts", 'make_scripts_executable');
536-
537514
git_clean(); // Idempotent clean up
538515
git_status(); // Show local repository status
539516

scripts/helpers/phpdoc-completion.sh

100755100644
File mode changed.

0 commit comments

Comments
 (0)