Subversion Repositories checksum-tools

Compare Revisions

Regard whitespace Rev 13 → Rev 12

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