makepp_builtins

makepp_builtins is a Perl module with builtin commands in makepp.
Download

makepp_builtins Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Daniel Pfeiffer
  • Publisher web site:
  • http://search.cpan.org/~pfeiffer/makepp-1.50-cvs-070728/pod/makepp_builtins.pod

makepp_builtins Tags


makepp_builtins Description

makepp_builtins is a Perl module with builtin commands in makepp. makepp_builtins is a Perl module with builtin commands in makepp.awk, &cat, "chgrp", "&chmod", chown, "&cp", "&cut", &echo, "&expr", false, &grep, head, &install, &ln, &mkdir, "&mv", "m4", &perl, "&preprocess", &printf, &rm, "rmdir", &sed, "&sort", tail, "&template", "&touch", "tr", &uninstall, "&uniq", &yesThere is a special Shell-like possibility to call built-in commands in a rule. The only metacharacters recognized are comment signs, backslashes, single and double quotes. Only one command may be given per line, and I/O redirection is not available (see -i and -o below instead).These commands start with &, which is the function character in Perl and not a valid first character in Shell. If no builtin command of that name can be found, this is also the syntax for calling an external script within the Perl instance performing the rule. See run.These commands, as well as your self defined ones and perl scripts can also be called as a make function, returning the standard output. The newlines are converted to spaces, except when evaluated within a define statement. FIRST-WORDS ;= $(&cut -d' ' -f0 $(FILES))When these commands are not indented as rule actions, they get performed while reading the makefile. You can also access these commands stand-alone, e.g. if you need some features not available in the Unix counterpart, via the makeppbuiltin command.These commands are mostly based on the GNU variant. But many options (like --backup, --interactive or --recursive) don't really make sense in a makefile. So, even though they'd be easy to implement in Perl, they have been left out. Also many Unix commands offer a variety of options that cover fairly complicated cases (e.g. sort field specifications) while still being inherently limited. Allowing access to Perl, which is present anyway, gives much more power here. Requirements: · Perl


makepp_builtins Related Software