- asprintf(&newenviron[i++], "%s=%s", "$var", s);
-EOF
- }
- if ($config{svn} && $config{notify}) {
- # Support running directly as hooks/post-commit by passing
- # $2 in REV in the environment.
- $envsave.=<<"EOF"
- if (argc == 3)
- asprintf(&newenviron[i++], "REV=%s", argv[2]);
- else if ((s=getenv("REV")))
- asprintf(&newenviron[i++], "%s=%s", "REV", s);