Deleted Added
full compact
main.c (148435) main.c (159554)
1/*
2 * FreeBSD install - a package for the installation and maintainance
3 * of non-core utilities.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 5 unchanged lines hidden (view full) ---

14 * Jeremy D. Lea.
15 * 11 May 2002
16 *
17 * This is the version module. Based on pkg_version.pl by Bruce A. Mah.
18 *
19 */
20
21#include <sys/cdefs.h>
1/*
2 * FreeBSD install - a package for the installation and maintainance
3 * of non-core utilities.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 5 unchanged lines hidden (view full) ---

14 * Jeremy D. Lea.
15 * 11 May 2002
16 *
17 * This is the version module. Based on pkg_version.pl by Bruce A. Mah.
18 *
19 */
20
21#include <sys/cdefs.h>
22__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/version/main.c 148435 2005-07-27 07:55:12Z krion $");
22__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/version/main.c 159554 2006-06-12 22:39:32Z obrien $");
23
24#include "lib.h"
25#include "version.h"
26#include <err.h>
27
28static char Options[] = "dIhl:L:qs:XtTO:ov";
29
30char *LimitChars = NULL;

--- 18 unchanged lines hidden (view full) ---

49 }
50 else if (argc == 4 && !strcmp(argv[1], "-T")) {
51 cmp = version_match(argv[3], argv[2]);
52 exit(cmp == 1 ? 0 : 1);
53 }
54 else while ((ch = getopt(argc, argv, Options)) != -1) {
55 switch(ch) {
56 case 'v':
23
24#include "lib.h"
25#include "version.h"
26#include <err.h>
27
28static char Options[] = "dIhl:L:qs:XtTO:ov";
29
30char *LimitChars = NULL;

--- 18 unchanged lines hidden (view full) ---

49 }
50 else if (argc == 4 && !strcmp(argv[1], "-T")) {
51 cmp = version_match(argv[3], argv[2]);
52 exit(cmp == 1 ? 0 : 1);
53 }
54 else while ((ch = getopt(argc, argv, Options)) != -1) {
55 switch(ch) {
56 case 'v':
57 Verbose = TRUE;
57 Verbose++;
58 break;
59
60 case 'I':
61 UseINDEXOnly = TRUE;
62 break;
63
64 case 'l':
65 LimitChars = optarg;

--- 57 unchanged lines hidden ---
58 break;
59
60 case 'I':
61 UseINDEXOnly = TRUE;
62 break;
63
64 case 'l':
65 LimitChars = optarg;

--- 57 unchanged lines hidden ---