pyrus / Pyrus_Developer

Developer tools for building PEAR compatible packages
7 stars 7 forks source link

Substitute @PACKAGE_NAME@ with the package's name. #11

Closed fpoirotte closed 12 years ago

fpoirotte commented 12 years ago

This is done in source files and in the phar stub in the same way as for @PACKAGE_VERSION@.

This makes it possible to reuse the same set of files across several projects (eg. one stub for many different projects or modules of the same project) while still having the correct (specific) output file for each project, because the substitution occurs at package creation time (during the make or package command).

This is independent from the __PACKAGE__ variable used by templates during creation of the package's layout which results in some hard-coded name in several files (eg. name of the autoloader in stub.php).