|
@@ -16,7 +16,7 @@
|
|
|
#import <sys/utsname.h>
|
|
|
#import "HelperClass.h"
|
|
|
|
|
|
-#define OPTION_FLAGS "o:i:ld:hcrbp:su:yn:a:C"
|
|
|
+#define OPTION_FLAGS "o:i:ld:hcrbp:su:yn:a:Ce:"
|
|
|
|
|
|
char *progname;
|
|
|
char *path;
|
|
@@ -37,6 +37,7 @@ static struct option longopts[] = {
|
|
|
{ "new", required_argument, NULL, 'n' },
|
|
|
{ "arch", required_argument, NULL, 'a' },
|
|
|
{ "create", no_argument, NULL, 'C' },
|
|
|
+ { "exclude", required_argument, NULL, 'e' },
|
|
|
{ NULL, 0, NULL, 0 }
|
|
|
};
|
|
|
|
|
@@ -57,6 +58,7 @@ void cmd_help(void){
|
|
|
printf(" -y, --yes\t\t\talways answer yes to prompts to overwrite files\n");
|
|
|
printf(" -p, --prefix\t\t\tthe prefix to append to all packages when repackaging or bumping a version number\n");
|
|
|
printf(" -C, --create\t\t\tcreate a package from the bootstrap with an interactive list\n");
|
|
|
+ printf(" -e, --exclude\t\t\tchoose a file list for excluded files when bumping, repackaging or creating a package\n");
|
|
|
|
|
|
printf("\n");
|
|
|
}
|
|
@@ -76,6 +78,7 @@ int main(int argc, char **argv) {
|
|
|
NSString *prefix = nil;
|
|
|
NSString *packagesFolder = nil;
|
|
|
NSString *arch = nil;
|
|
|
+ NSString *excludeFile = nil;
|
|
|
BOOL listPackage = FALSE;
|
|
|
BOOL repackage = FALSE;
|
|
|
BOOL skip = FALSE;
|
|
@@ -160,6 +163,10 @@ int main(int argc, char **argv) {
|
|
|
create = TRUE;
|
|
|
break;
|
|
|
|
|
|
+ case 'e':
|
|
|
+ excludeFile = [NSString stringWithUTF8String:optarg];
|
|
|
+ break;
|
|
|
+
|
|
|
default:
|
|
|
cmd_help();
|
|
|
return -1;
|