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

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

15 * Jordan K. Hubbard
16 * 18 July 1993
17 *
18 * This is the delete module.
19 *
20 */
21
22#include <sys/cdefs.h>
1/*
2 *
3 * FreeBSD install - a package for the installation and maintainance
4 * of non-core utilities.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

15 * Jordan K. Hubbard
16 * 18 July 1993
17 *
18 * This is the delete module.
19 *
20 */
21
22#include <sys/cdefs.h>
23__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/delete/main.c 201226 2009-12-29 22:33:53Z ed $");
23__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/delete/main.c 207113 2010-04-23 11:07:43Z flz $");
24
25#include <sys/types.h>
26#include <sys/stat.h>
27#include <getopt.h>
28#include <err.h>
29
24
25#include <sys/types.h>
26#include <sys/stat.h>
27#include <getopt.h>
28#include <err.h>
29
30#include "lib.h"
30#include <pkg.h>
31#include "delete.h"
32
33char *Prefix = NULL;
34Boolean CleanDirs = FALSE;
35Boolean Interactive = FALSE;
36Boolean NoDeInstall = FALSE;
37Boolean Recursive = FALSE;
38match_t MatchType = MATCH_GLOB;

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

62main(int argc, char **argv)
63{
64 int ch, error;
65 char **pkgs, **start;
66 char *pkgs_split;
67 const char *tmp;
68 struct stat stat_s;
69
31#include "delete.h"
32
33char *Prefix = NULL;
34Boolean CleanDirs = FALSE;
35Boolean Interactive = FALSE;
36Boolean NoDeInstall = FALSE;
37Boolean Recursive = FALSE;
38match_t MatchType = MATCH_GLOB;

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

62main(int argc, char **argv)
63{
64 int ch, error;
65 char **pkgs, **start;
66 char *pkgs_split;
67 const char *tmp;
68 struct stat stat_s;
69
70 pkg_wrap(PKG_INSTALL_VERSION, argv);
71
70 pkgs = start = argv;
71 while ((ch = getopt_long(argc, argv, opts, longopts, NULL)) != -1)
72 switch(ch) {
73 case 'v':
74 Verbose++;
75 break;
76
77 case 'f':

--- 102 unchanged lines hidden ---
72 pkgs = start = argv;
73 while ((ch = getopt_long(argc, argv, opts, longopts, NULL)) != -1)
74 switch(ch) {
75 case 'v':
76 Verbose++;
77 break;
78
79 case 'f':

--- 102 unchanged lines hidden ---