Subversion Repositories checksum-tools

Compare Revisions

Regard whitespace Rev 12 → Rev 13

/trunk/PHP/md5_generate.php
57,7 → 57,8
 
$fullpath = rtrim($directory,DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.$file;
if (is_dir($fullpath)) {
_rec($fullpath);
global $do_recursive;
if ($do_recursive) _rec($fullpath);
} else if (is_file($fullpath)) {
global $show_verbose;
if ($show_verbose) echo "$fullpath\n";
99,11 → 100,14
# ---
 
$show_verbose = false;
$do_recursive = false;
$dir = '';
 
for ($i=1; $i<$argc; $i++) {
if ($argv[$i] == '-v') {
$show_verbose = true;
} else if ($argv[$i] == '-r') {
$do_recursive = true;
} else {
$dir = $argv[$i];
}
110,7 → 114,7
}
 
if (empty($dir)) {
echo "Syntax: $argv[0] [-v] <directory>\n";
echo "Syntax: $argv[0] [-v] [-r] <directory>\n";
exit(2);
}
 
/trunk/PHP/sfv_generate.php
57,7 → 57,8
 
$fullpath = rtrim($directory,DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.$file;
if (is_dir($fullpath)) {
_rec($fullpath);
global $do_recursive;
if ($do_recursive) _rec($fullpath);
} else if (is_file($fullpath)) {
global $show_verbose;
if ($show_verbose) echo "$fullpath\n";
108,11 → 109,14
# ---
 
$show_verbose = false;
$do_recursive = false;
$dir = '';
 
for ($i=1; $i<$argc; $i++) {
if ($argv[$i] == '-v') {
$show_verbose = true;
} else if ($argv[$i] == '-r') {
$do_recursive = true;
} else {
$dir = $argv[$i];
}
119,7 → 123,7
}
 
if (empty($dir)) {
echo "Syntax: $argv[0] [-v] <directory>\n";
echo "Syntax: $argv[0] [-v] [-r] <directory>\n";
exit(2);
}