Lines Matching refs:pat

206  *	$(s:G=<pat>)	select components that build (generate) <pat> files
210 * $(s:L[=<pat>) list all (viewed) files matching <pat>
211 * $(s:M[!]=<pat>) select components [not] matching RE pattern <pat>
212 * $(s:N[!]=<pat>) select components [not] matching shell pattern <pat>
716 * generate list of hash table names matching pat
720 listtab(Sfio_t* xp, Hash_table_t* tab, char* pat, int flags)
728 if (*pat && (n = regcomp(&sre, pat, REG_SHELL|REG_AUGMENTED|REG_LENIENT|REG_LEFT|REG_RIGHT)))
730 regfatalpat(&sre, 2, n, pat);
738 if (*pat && (n = regexec(&sre, pos->bucket->name, 0, NiL, 0)))
768 if (*pat)
773 * generate list of file base names matching pat from all dirs in s
777 list(Sfio_t* xp, register char* s, char* pat, int flags)
793 if (*pat && (n = regcomp(&sre, pat, REG_SHELL|REG_AUGMENTED|REG_LENIENT|REG_LEFT|REG_RIGHT)))
795 regfatalpat(&sre, 2, n, pat);
839 if (*pat)
846 if (n = regcomp(re, pat, REG_SHELL|REG_AUGMENTED|REG_LENIENT|REG_ICASE|REG_LEFT|REG_RIGHT))
848 regfatalpat(re, 2, n, pat);
933 if (*pat)
3030 * check if name generates a target matching the metarule pattern pat
3035 generate(Sfio_t* xp, char* name, char* pat, int sep)
3043 if (pat[0] != '%' || pat[1])
3045 if (metamatch(NiL, name, pat))
3051 if (!strchr(pat, '%'))
3054 if (metamatch(stem, pat, p->rule->name) && (x = metainfo('I', p->rule->name, NiL, 0)))
3064 if (metamatch(tmpname, name, p->rule->name) && (streq(tmpname, pat) || (b = strrchr(pat, '/')) && streq(tmpname, b + 1)))
3078 if (metamatch(NiL, p->rule->name, pat) && (x = metainfo('I', p->rule->name, NiL, 0)))
3103 generate(xp, sfstruse(tp), pat, sep);
3125 generate(xp, sfstruse(tp), pat, sep);
3149 if (q->rule->name != pat)
3159 generate(xp, sfstruse(tp), pat, sep);