--- loncom/build/lpml_parse.pl 2001/11/07 16:53:52 1.16
+++ loncom/build/lpml_parse.pl 2001/11/16 21:10:32 1.18
@@ -6,7 +6,10 @@
# 06/19/2001,06/20,06/24 - Scott Harrison
# 9/5/2001,9/6,9/7,9/8 - Scott Harrison
# 9/17,9/18 - Scott Harrison
-# 11/4 - Scott Harrison
+# 11/4,11/5,11/6,11/7,11/16 - Scott Harrison
+#
+# $Id: lpml_parse.pl,v 1.18 2001/11/16 21:10:32 harris41 Exp $
+###
###############################################################################
## ##
@@ -85,7 +88,7 @@ $targetroot=~s/\/$//;
my $invocation;
# --------------------------------------------------- Record program invocation
-if ($mode eq 'install') {
+if ($mode eq 'install' or $mode eq 'configinstall' or $mode eq 'build') {
$invocation=(<TARGETROOT: $text";
}
- elsif ($mode eq 'install') {
- return '# TARGET INSTALL LOCATION is "'.$targetroot."\"\n";
- }
- elsif ($mode eq 'build') {
+ elsif ($mode eq 'install' or $mode eq 'build' or
+ $mode eq 'configinstall') {
return '# TARGET INSTALL LOCATION is "'.$targetroot."\"\n";
}
else {
@@ -384,10 +386,8 @@ sub format_sourceroot {
if ($mode eq 'html') {
return $sourceroot="\n
SOURCEROOT: $text";
}
- elsif ($mode eq 'install') {
- return '# SOURCE CODE LOCATION IS "'.$sourceroot."\"\n";;
- }
- elsif ($mode eq 'build') {
+ elsif ($mode eq 'install' or $mode eq 'build' or
+ $mode eq 'configinstall') {
return '# SOURCE CODE LOCATION IS "'.$sourceroot."\"\n";;
}
else {
@@ -703,7 +703,7 @@ sub format_files {
if ($olddep) {
$depstring2.="\t\tECODE=0;\\\n";
$depstring2.="\t\t! test -e $source && test -r $command/$olddep &&".
- " { perl filecompare.pl -B $command/$olddep $target || ECODE=\$\$?; } && { [ \$\$ECODE != \"2\" ] || echo \"**** WARNING **** dependency $command/$olddep is newer than target file $target; SOMETHING MAY BE WRONG\"; };\\\n";
+ " { perl filecompare.pl -b2 $command/$olddep $target || ECODE=\$\$?; } && { [ \$\$ECODE != \"2\" ] || echo \"**** WARNING **** dependency $command/$olddep is newer than target file $target; SOMETHING MAY BE WRONG\"; };\\\n";
}
$olddep=$dep;
}
@@ -771,7 +771,7 @@ sub format_file {
$depstring.=<