ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/App-Staticperl/staticperl.pod
(Generate patch)

Comparing App-Staticperl/staticperl.pod (file contents):
Revision 1.37 by root, Thu Feb 24 07:01:46 2011 UTC vs.
Revision 1.38 by root, Fri Mar 18 19:49:04 2011 UTC

940 940
941In addition to environment variables, it is possible to provide some 941In addition to environment variables, it is possible to provide some
942shell functions that are called at specific times. To provide your own 942shell functions that are called at specific times. To provide your own
943commands, just define the corresponding function. 943commands, just define the corresponding function.
944 944
945The actual order in which hooks are invoked during a full install
946from scratch is C<preconfigure>, C<patchconfig>, C<postconfigure>,
947C<postbuild>, C<postinstall>.
948
945Example: install extra modules from CPAN and from some directories 949Example: install extra modules from CPAN and from some directories
946at F<staticperl install> time. 950at F<staticperl install> time.
947 951
948 postinstall() { 952 postinstall() {
949 rm -rf lib/threads* # weg mit Schaden 953 rm -rf lib/threads* # weg mit Schaden
955 959
956=over 4 960=over 4
957 961
958=item preconfigure 962=item preconfigure
959 963
960Called just before running F<./Configur> in the perl source 964Called just before running F<./Configure> in the perl source
961directory. Current working directory is the perl source directory. 965directory. Current working directory is the perl source directory.
962 966
963This can be used to set any C<PERL_xxx> variables, which might be costly 967This can be used to set any C<PERL_xxx> variables, which might be costly
964to compute. 968to compute.
965 969
970=item patchconfig
971
972Called after running F<./Configure> in the perl source directory to create
973F<./config.sh>, but before running F<./Configure -S> to actually apply the
974config. Current working directory is the perl source directory.
975
976Can be used to tailor/patch F<config.sh> or do any other modifications.
977
966=item postconfigure 978=item postconfigure
967 979
968Called after configuring, but before building perl. Current working 980Called after configuring, but before building perl. Current working
969directory is the perl source directory. 981directory is the perl source directory.
970
971Could be used to tailor/patch config.sh (followed by F<sh Configure -S>)
972or do any other modifications.
973 982
974=item postbuild 983=item postbuild
975 984
976Called after building, but before installing perl. Current working 985Called after building, but before installing perl. Current working
977directory is the perl source directory. 986directory is the perl source directory.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines