version 1.54, 2007/01/25 22:54:25
|
version 1.56, 2011/01/10 21:24:36
|
Line 1266 sub format_file {
|
Line 1266 sub format_file {
|
# "$build $status $dependencies" . |
# "$build $status $dependencies" . |
# "\nEND FILE"); |
# "\nEND FILE"); |
} |
} |
elsif ($mode eq 'install' && $categoryname ne 'conf') { |
elsif (($mode eq 'install') && (($categoryname ne 'conf') && |
|
($categoryname ne 'www conf'))) { |
if ($build) { |
if ($build) { |
my $bi=$sourceroot.'/'.$source.';'.$build.';'. |
my $bi=$sourceroot.'/'.$source.';'.$build.';'. |
$dependencies; |
$dependencies; |
Line 1297 END
|
Line 1298 END
|
$buildtest.=<<END; |
$buildtest.=<<END; |
fi |
fi |
END |
END |
} |
} |
if ($installscript) { |
if ($installscript) { |
my $dir = $sourceroot.'/'.$source; |
my $dir = $sourceroot.'/'.$source; |
$dir =~ s|/([^/]*)$||; |
$dir =~ s|/([^/]*)$||; |
return <<"END"; |
my $result =" |
$buildtest cd $dir ; sh $installscript\\ |
$buildtest cd $dir ; sh $installscript"; |
chmod -R $categoryhash{chmod.$categoryname} ${targetroot}/${target} \\ |
if ($categoryname |
chown -R $categoryhash{chown.$categoryname} ${targetroot}/${target} \\ |
&& exists($categoryhash{"chmod.$categoryname"}) ) { |
|
$result .="\\\n"; |
|
$result .=<<"END" |
|
chmod -R $categoryhash{"chmod.$categoryname"} ${targetroot}/${target} \\ |
|
chown -R $categoryhash{"chown.$categoryname"} ${targetroot}/${target} |
END |
END |
|
} else { |
|
$result.="\n"; |
|
} |
|
return $result; |
} |
} |
my $bflag='-b1'; |
my $bflag='-b1'; |
$bflag='-b3' if $dependencies or $buildlink; |
$bflag='-b3' if $dependencies or $buildlink; |
Line 1327 $buildtest \@if !(test -e "${sourceroot}
|
Line 1336 $buildtest \@if !(test -e "${sourceroot}
|
fi |
fi |
END |
END |
} |
} |
elsif ($mode eq 'configinstall' && $categoryname eq 'conf') { |
elsif ($mode eq 'configinstall' && (($categoryname eq 'conf') || |
|
($categoryname eq 'www conf'))) { |
push @configall,$targetroot.'/'.$target; |
push @configall,$targetroot.'/'.$target; |
return $targetroot.'/'.$target.': alwaysrun'."\n". |
return $targetroot.'/'.$target.': alwaysrun'."\n". |
"\t".'@# Compare source with target and intelligently respond'. |
"\t".'@# Compare source with target and intelligently respond'. |