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