|
version 1.1.2.1, 2012/11/13 13:41:36
|
version 1.2, 2012/11/13 14:19:39
|
|
Line 43 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
Line 43 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| SUCH DAMAGE. |
SUCH DAMAGE. |
| */ |
*/ |
| #include "global.h" | #include <stdio.h> |
| | #include <stdlib.h> |
| | #include <unistd.h> |
| | #include <errno.h> |
| | #include <sys/types.h> |
| | #include <sys/param.h> |
| | #include <sys/stat.h> |
| | #include <aitsync.h> |
| |
|
| |
|
| extern char compiled[], compiledby[], compilehost[]; |
|
| |
|
| |
|
| static void |
static void |
| Usage() |
Usage() |
| { |
{ |
| printf( "-= DirCmp =- Tool for compare directories and show differences\n" |
printf( "-= DirCmp =- Tool for compare directories and show differences\n" |
| "=== %s === %s@%s ===\n\n" | "====================\n\n" |
| " Syntax: dircmp [options] <dir> [<cmp_dir>]\n\n" |
" Syntax: dircmp [options] <dir> [<cmp_dir>]\n\n" |
| "\t-l\t\tLong directory output ...\n" |
"\t-l\t\tLong directory output ...\n" |
| "\t-o <filename>\tOutput diff to filename\n" |
"\t-o <filename>\tOutput diff to filename\n" |
| "\n", compiled, compiledby, compilehost); | "\n"); |
| } |
} |
| |
|
| int |
int |
|
Line 91 main(int argc, char **argv)
|
Line 95 main(int argc, char **argv)
|
| Usage(); |
Usage(); |
| return 127; |
return 127; |
| } |
} |
| // check for general differences | /* check for general differences */ |
| if (argc > 1) { |
if (argc > 1) { |
| if (lstat(argv[1], &sb) == -1) { |
if (lstat(argv[1], &sb) == -1) { |
| printf("Error:: %s(%d) #%d - %s\n", __func__, __LINE__, errno, strerror(errno)); |
printf("Error:: %s(%d) #%d - %s\n", __func__, __LINE__, errno, strerror(errno)); |