Fossil SCM

Move "sha1sum" to an auxiliary command. Promote "test-md5sum" to an auxiliary command.

drh 2011-11-03 18:04 trunk
Commit dde919a4639e1bc48f1450172a31f1dd3465f5df
2 files changed +3 -2 +1 -1
+3 -2
--- src/md5.c
+++ src/md5.c
@@ -421,14 +421,15 @@
421421
return 0;
422422
}
423423
424424
425425
/*
426
-** COMMAND: test-md5sum
426
+** COMMAND: md5sum*
427
+** Usage: %fossil md5sum FILES....
427428
**
428429
** Compute an MD5 checksum of all files named on the command-line.
429
-** If an file is named "-" then take its content from standard input.
430
+** If a file is named "-" then content is read from standard input.
430431
*/
431432
void md5sum_test(void){
432433
int i;
433434
Blob in;
434435
Blob cksum;
435436
--- src/md5.c
+++ src/md5.c
@@ -421,14 +421,15 @@
421 return 0;
422 }
423
424
425 /*
426 ** COMMAND: test-md5sum
 
427 **
428 ** Compute an MD5 checksum of all files named on the command-line.
429 ** If an file is named "-" then take its content from standard input.
430 */
431 void md5sum_test(void){
432 int i;
433 Blob in;
434 Blob cksum;
435
--- src/md5.c
+++ src/md5.c
@@ -421,14 +421,15 @@
421 return 0;
422 }
423
424
425 /*
426 ** COMMAND: md5sum*
427 ** Usage: %fossil md5sum FILES....
428 **
429 ** Compute an MD5 checksum of all files named on the command-line.
430 ** If a file is named "-" then content is read from standard input.
431 */
432 void md5sum_test(void){
433 int i;
434 Blob in;
435 Blob cksum;
436
+1 -1
--- src/sha1.c
+++ src/sha1.c
@@ -437,11 +437,11 @@
437437
sqlite3_result_text(context, sha1_shared_secret(zPw, zLogin, zProjid), -1,
438438
fossil_free);
439439
}
440440
441441
/*
442
-** COMMAND: sha1sum
442
+** COMMAND: sha1sum*
443443
** %fossil sha1sum FILE...
444444
**
445445
** Compute an SHA1 checksum of all files named on the command-line.
446446
** If an file is named "-" then take its content from standard input.
447447
*/
448448
--- src/sha1.c
+++ src/sha1.c
@@ -437,11 +437,11 @@
437 sqlite3_result_text(context, sha1_shared_secret(zPw, zLogin, zProjid), -1,
438 fossil_free);
439 }
440
441 /*
442 ** COMMAND: sha1sum
443 ** %fossil sha1sum FILE...
444 **
445 ** Compute an SHA1 checksum of all files named on the command-line.
446 ** If an file is named "-" then take its content from standard input.
447 */
448
--- src/sha1.c
+++ src/sha1.c
@@ -437,11 +437,11 @@
437 sqlite3_result_text(context, sha1_shared_secret(zPw, zLogin, zProjid), -1,
438 fossil_free);
439 }
440
441 /*
442 ** COMMAND: sha1sum*
443 ** %fossil sha1sum FILE...
444 **
445 ** Compute an SHA1 checksum of all files named on the command-line.
446 ** If an file is named "-" then take its content from standard input.
447 */
448

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button