diff options
author | jkh <jkh@FreeBSD.org> | 1995-04-22 00:03:18 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-04-22 00:03:18 +0000 |
commit | fc0ace6edfc20a1f168504a46ecaa49e96dd8cea (patch) | |
tree | 2e873268429c822b85a256fdce06a08e43ce78aa /usr.sbin/pkg_install/create/perform.c | |
parent | 571d43ff480784669abbb23d717dfb1a2cd06812 (diff) | |
download | FreeBSD-src-fc0ace6edfc20a1f168504a46ecaa49e96dd8cea.zip FreeBSD-src-fc0ace6edfc20a1f168504a46ecaa49e96dd8cea.tar.gz |
1. Add proper dependencies to the library in my Makefiles. This was pointed
out by Bruce.
2. Add a "feature" to pkg_create (OK, OK, it's a miserable hack!) to get
it to dump its internal packing list out so that the `fake-pkg' rule in
bsd.port.mk can generate a more meaningful packing list.
Diffstat (limited to 'usr.sbin/pkg_install/create/perform.c')
-rw-r--r-- | usr.sbin/pkg_install/create/perform.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c index f83f309..06d517e 100644 --- a/usr.sbin/pkg_install/create/perform.c +++ b/usr.sbin/pkg_install/create/perform.c @@ -1,5 +1,5 @@ #ifndef lint -static const char *rcsid = "$Id: perform.c,v 1.15 1995/04/09 15:05:00 jkh Exp $"; +static const char *rcsid = "$Id: perform.c,v 1.16 1995/04/10 08:01:52 jkh Exp $"; #endif /* @@ -41,7 +41,7 @@ pkg_perform(char **pkgs) /* Preliminary setup */ sanity_check(); - if (Verbose) + if (Verbose && !PlistOnly) printf("Creating package %s\n", pkg); get_dash_string(&Comment); get_dash_string(&Desc); @@ -92,6 +92,15 @@ pkg_perform(char **pkgs) if (find_plist(&plist, PLIST_NAME) == NULL) add_plist_top(&plist, PLIST_NAME, basename_of(pkg)); + /* + * We're just here for to dump out a revised plist for the FreeBSD ports + * hack. It's not a real create in progress. + */ + if (PlistOnly) { + write_plist(&plist, stdout); + exit(0); + } + /* Make a directory to stomp around in */ home = make_playpen(PlayPen, 0); signal(SIGINT, cleanup); |