--- loncom/build/Attic/parse.pl 2000/12/12 16:51:39 1.13 +++ loncom/build/Attic/parse.pl 2000/12/14 18:38:37 1.17 @@ -121,11 +121,11 @@ elsif ($mode eq "SPEC") { } elsif ($mode eq "LCMakefile") { @directories=&determine_directory_structure; - $a=&make_directory_install_segment(\@directories); + $a=&make_directory_LCMakefile_segment(\@directories); print $a; - $a=&make_files_install_segment(\@directories); + $a=&make_files_LCMakefile_segment(\@directories); print $a; - $a=&make_links_install_segment(\@directories); + $a=&make_links_LCMakefile_segment(\@directories); print $a; } elsif ($mode eq "BinaryRoot") { @@ -152,7 +152,26 @@ elsif ($mode eq "status") { } elsif ($mode eq "update") { } -elsif ($mode eq "freshinstall") { +elsif ($mode eq "configinstall") { + @directories=&determine_directory_structure; + $a=&make_files_configinstall_segment(\@directories); + print $a; + $a=&make_files_configpermissions_segment(\@directories); + print $a; +} +elsif ($mode eq "install") { + @directories=&determine_directory_structure; + $a=&make_directory_install_segment(\@directories); + print $a; + $a=&make_files_install_segment(\@directories); + print $a; + $a=&make_links_install_segment(\@directories); + print $a; +} +elsif ($mode eq "build") { + @directories=&determine_directory_structure; + $a=&make_files_build_segment(\@directories); + print $a; } # ------------------------------------------------------ a list of file targets @@ -326,6 +345,114 @@ END return $description; } +# ------ Installation commands for a Makefile used only by a rpm -ba invocation +sub make_directory_LCMakefile_segment { + my ($dirs)=@_; + my $description=<