diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1994-08-28 14:15:30 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1994-08-28 14:15:30 +0000 |
| commit | 25662936983457cf09314d762f7b8ec810d69260 (patch) | |
| tree | de0899877d025a04d6af82502669e32e43fd0dd4 /usr.sbin/pkg_install/lib | |
| parent | 1ea82217171e02948b5180b5baa9dc295503aa05 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/pkg_install/lib')
| -rw-r--r-- | usr.sbin/pkg_install/lib/lib.h | 4 | ||||
| -rw-r--r-- | usr.sbin/pkg_install/lib/plist.c | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/lib/lib.h b/usr.sbin/pkg_install/lib/lib.h index 54e825147ac6..4f34569784e7 100644 --- a/usr.sbin/pkg_install/lib/lib.h +++ b/usr.sbin/pkg_install/lib/lib.h @@ -1,4 +1,4 @@ -/* $Id: lib.h,v 1.6 1994/05/25 06:27:23 jkh Exp $ */ +/* $Id: lib.h,v 1.7 1994/05/25 18:00:04 asami Exp $ */ /* * FreeBSD install - a package for the installation and maintainance @@ -75,7 +75,7 @@ enum _plist_t { PLIST_FILE, PLIST_CWD, PLIST_CMD, PLIST_CHMOD, PLIST_CHOWN, PLIST_CHGRP, PLIST_COMMENT, - PLIST_IGNORE, PLIST_NAME, PLIST_UNEXEC + PLIST_IGNORE, PLIST_NAME, PLIST_UNEXEC, PLIST_SRC }; typedef enum _plist_t plist_t; diff --git a/usr.sbin/pkg_install/lib/plist.c b/usr.sbin/pkg_install/lib/plist.c index a0a2fa5fe05f..d2708fde9a34 100644 --- a/usr.sbin/pkg_install/lib/plist.c +++ b/usr.sbin/pkg_install/lib/plist.c @@ -1,5 +1,5 @@ #ifndef lint -static const char *rcsid = "$Id: plist.c,v 1.6 1994/05/25 06:27:24 jkh Exp $"; +static const char *rcsid = "$Id: plist.c,v 1.7 1994/07/11 01:11:14 jkh Exp $"; #endif /* @@ -180,6 +180,8 @@ plist_cmd(char *s, char **arg) *arg = sp; if (!strcmp(cmd, "cwd")) return PLIST_CWD; + else if (!strcmp(cmd, "srcdir")) + return PLIST_SRC; else if (!strcmp(cmd, "cd")) return PLIST_CWD; else if (!strcmp(cmd, "exec")) @@ -246,6 +248,10 @@ write_plist(Package *pkg, FILE *fp) fprintf(fp, "%ccwd %s\n", CMD_CHAR, plist->name); break; + case PLIST_SRC: + fprintf(fp, "%csrcdir %s\n", CMD_CHAR, plist->name); + break; + case PLIST_CMD: fprintf(fp, "%cexec %s\n", CMD_CHAR, plist->name); break; |
