perform.c (7733) | perform.c (7986) |
---|---|
1#ifndef lint | 1#ifndef lint |
2static const char *rcsid = "$Id: perform.c,v 1.15 1995/04/09 15:05:00 jkh Exp $"; | 2static const char *rcsid = "$Id: perform.c,v 1.16 1995/04/10 08:01:52 jkh Exp $"; |
3#endif 4 5/* 6 * FreeBSD install - a package for the installation and maintainance 7 * of non-core utilities. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions --- 25 unchanged lines hidden (view full) --- 36 char *pkg = *pkgs; /* Only one arg to create */ 37 char *home, *cp; 38 FILE *pkg_in, *fp; 39 Package plist; 40 char *suffix; /* What we tack on to the end of the finished package */ 41 42 /* Preliminary setup */ 43 sanity_check(); | 3#endif 4 5/* 6 * FreeBSD install - a package for the installation and maintainance 7 * of non-core utilities. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions --- 25 unchanged lines hidden (view full) --- 36 char *pkg = *pkgs; /* Only one arg to create */ 37 char *home, *cp; 38 FILE *pkg_in, *fp; 39 Package plist; 40 char *suffix; /* What we tack on to the end of the finished package */ 41 42 /* Preliminary setup */ 43 sanity_check(); |
44 if (Verbose) | 44 if (Verbose && !PlistOnly) |
45 printf("Creating package %s\n", pkg); 46 get_dash_string(&Comment); 47 get_dash_string(&Desc); 48 if (!strcmp(Contents, "-")) 49 pkg_in = stdin; 50 else { 51 pkg_in = fopen(Contents, "r"); 52 if (!pkg_in) --- 34 unchanged lines hidden (view full) --- 87 } 88 /* 89 * Run down the list and see if we've named it, if not stick in a name 90 * at the top. 91 */ 92 if (find_plist(&plist, PLIST_NAME) == NULL) 93 add_plist_top(&plist, PLIST_NAME, basename_of(pkg)); 94 | 45 printf("Creating package %s\n", pkg); 46 get_dash_string(&Comment); 47 get_dash_string(&Desc); 48 if (!strcmp(Contents, "-")) 49 pkg_in = stdin; 50 else { 51 pkg_in = fopen(Contents, "r"); 52 if (!pkg_in) --- 34 unchanged lines hidden (view full) --- 87 } 88 /* 89 * Run down the list and see if we've named it, if not stick in a name 90 * at the top. 91 */ 92 if (find_plist(&plist, PLIST_NAME) == NULL) 93 add_plist_top(&plist, PLIST_NAME, basename_of(pkg)); 94 |
95 /* 96 * We're just here for to dump out a revised plist for the FreeBSD ports 97 * hack. It's not a real create in progress. 98 */ 99 if (PlistOnly) { 100 write_plist(&plist, stdout); 101 exit(0); 102 } 103 |
|
95 /* Make a directory to stomp around in */ 96 home = make_playpen(PlayPen, 0); 97 signal(SIGINT, cleanup); 98 signal(SIGHUP, cleanup); 99 100 /* Make first "real contents" pass over it */ 101 check_list(home, &plist); 102 (void) umask(022); /* make sure gen'ed directories, files don't have --- 110 unchanged lines hidden --- | 104 /* Make a directory to stomp around in */ 105 home = make_playpen(PlayPen, 0); 106 signal(SIGINT, cleanup); 107 signal(SIGHUP, cleanup); 108 109 /* Make first "real contents" pass over it */ 110 check_list(home, &plist); 111 (void) umask(022); /* make sure gen'ed directories, files don't have --- 110 unchanged lines hidden --- |