main.c (93520) | main.c (131275) |
---|---|
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 93520 2002-04-01 09:39:07Z obrien $"); | 23__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/delete/main.c 131275 2004-06-29 18:54:47Z eik $"); |
24 25#include <sys/types.h> 26#include <sys/stat.h> 27#include <err.h> 28#include "lib.h" 29#include "delete.h" 30 | 24 25#include <sys/types.h> 26#include <sys/stat.h> 27#include <err.h> 28#include "lib.h" 29#include "delete.h" 30 |
31static char Options[] = "adDfGhinp:rvx"; | 31static char Options[] = "adDfGhinp:rvxX"; |
32 33char *Prefix = NULL; 34Boolean CleanDirs = FALSE; 35Boolean Interactive = FALSE; 36Boolean NoDeInstall = FALSE; 37Boolean Recursive = FALSE; 38match_t MatchType = MATCH_GLOB; 39 --- 43 unchanged lines hidden (view full) --- 83 case 'G': 84 MatchType = MATCH_EXACT; 85 break; 86 87 case 'x': 88 MatchType = MATCH_REGEX; 89 break; 90 | 32 33char *Prefix = NULL; 34Boolean CleanDirs = FALSE; 35Boolean Interactive = FALSE; 36Boolean NoDeInstall = FALSE; 37Boolean Recursive = FALSE; 38match_t MatchType = MATCH_GLOB; 39 --- 43 unchanged lines hidden (view full) --- 83 case 'G': 84 MatchType = MATCH_EXACT; 85 break; 86 87 case 'x': 88 MatchType = MATCH_REGEX; 89 break; 90 |
91 case 'X': 92 MatchType = MATCH_EREGEX; 93 break; 94 |
|
91 case 'i': 92 Interactive = TRUE; 93 break; 94 95 case 'r': 96 Recursive = TRUE; 97 break; 98 --- 47 unchanged lines hidden (view full) --- 146 else 147 return 0; 148} 149 150static void 151usage() 152{ 153 fprintf(stderr, "%s\n%s\n", | 95 case 'i': 96 Interactive = TRUE; 97 break; 98 99 case 'r': 100 Recursive = TRUE; 101 break; 102 --- 47 unchanged lines hidden (view full) --- 150 else 151 return 0; 152} 153 154static void 155usage() 156{ 157 fprintf(stderr, "%s\n%s\n", |
154 "usage: pkg_delete [-dDfGinrvx] [-p prefix] pkg-name ...", | 158 "usage: pkg_delete [-dDfGinrvxX] [-p prefix] pkg-name ...", |
155 " pkg_delete -a [flags]"); 156 exit(1); 157} | 159 " pkg_delete -a [flags]"); 160 exit(1); 161} |