Add copyright
[unix-history] / usr / src / usr.bin / rdist / gram.y
index a2dff2d..5f40223 100644 (file)
@@ -1,6 +1,12 @@
 %{
 %{
+#
+# Copyright (c) 1980 Regents of the University of California.
+# All rights reserved.  The Berkeley software License Agreement
+# specifies the terms and conditions for redistribution.
+#
+#
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)gram.y      4.10 (Berkeley) 84/05/03";
+static char *sccsid = "@(#)gram.y      5.1 (Berkeley) 85/06/06";
 #endif
 
 #include "defs.h"
 #endif
 
 #include "defs.h"
@@ -130,7 +136,7 @@ cmd:                  INSTALL options opt_namelist SM = {
                        for (nl = $2; nl != NULL; nl = nl->n_next)
                                if ((cp = re_comp(nl->n_name)) != NULL)
                                        yyerror(cp);
                        for (nl = $2; nl != NULL; nl = nl->n_next)
                                if ((cp = re_comp(nl->n_name)) != NULL)
                                        yyerror(cp);
-                       $1->sc_args = $2;
+                       $1->sc_args = expand($2, E_VARS);
                        $$ = $1;
                }
                | SPECIAL opt_namelist STRING SM = {
                        $$ = $1;
                }
                | SPECIAL opt_namelist STRING SM = {
@@ -284,6 +290,14 @@ again:
                case 'y':
                        yylval.intval = YOUNGER;
                        return(OPTION);
                case 'y':
                        yylval.intval = YOUNGER;
                        return(OPTION);
+
+               case 'h':
+                       yylval.intval = FOLLOW;
+                       return(OPTION);
+
+               case 'i':
+                       yylval.intval = IGNLNKS;
+                       return(OPTION);
                }
        }
        if (!strcmp(yytext, "install"))
                }
        }
        if (!strcmp(yytext, "install"))
@@ -292,7 +306,7 @@ again:
                c = NOTIFY;
        else if (!strcmp(yytext, "except"))
                c = EXCEPT;
                c = NOTIFY;
        else if (!strcmp(yytext, "except"))
                c = EXCEPT;
-       else if (!strcmp(yytext, "exp_pat"))
+       else if (!strcmp(yytext, "except_pat"))
                c = PATTERN;
        else if (!strcmp(yytext, "special"))
                c = SPECIAL;
                c = PATTERN;
        else if (!strcmp(yytext, "special"))
                c = SPECIAL;