File:  [LON-CAPA] / loncom / UPDATE
Revision 1.2: download - view: text, annotated - select for diffs
Mon Jul 3 04:43:00 2006 UTC (18 years, 5 months ago) by albertel
Branches: MAIN
CVS tags: version_2_9_X, version_2_9_99_0, version_2_9_1, version_2_9_0, version_2_8_X, version_2_8_99_1, version_2_8_99_0, version_2_8_2, version_2_8_1, version_2_8_0, version_2_7_X, version_2_7_99_1, version_2_7_99_0, version_2_7_1, version_2_7_0, version_2_6_X, version_2_6_99_1, version_2_6_99_0, version_2_6_3, version_2_6_2, version_2_6_1, version_2_6_0, version_2_5_X, version_2_5_99_1, version_2_5_99_0, version_2_5_2, version_2_5_1, version_2_5_0, version_2_4_X, version_2_4_99_0, version_2_4_2, version_2_4_1, version_2_4_0, version_2_3_X, version_2_3_99_0, version_2_3_2, version_2_3_1, version_2_3_0, version_2_2_X, version_2_2_99_1, version_2_2_99_0, version_2_2_2, version_2_2_1, version_2_2_0, version_2_1_99_3, version_2_1_99_2, version_2_1_99_1, version_2_1_99_0, version_2_10_X, version_2_10_1, version_2_10_0_RC2, version_2_10_0_RC1, version_2_10_0, loncapaMITrelate_1, bz6209-base, bz6209, bz5969, bz2851, PRINT_INCOMPLETE_base, PRINT_INCOMPLETE, HEAD, GCI_3, GCI_2, GCI_1, BZ5971-printing-apage, BZ5434-fox
- make sure rm doesn't throw a nut

#!/usr/bin/perl
my $script=<<CMD;
touch loncom/build/WARNINGS
rm -f WARNINGS
ln -s loncom/build/WARNINGS WARNINGS
cd loncom/build;make build
make rawinstall
make configinstall
make updatequery
make hosts_and_domain_tab
make postinstall
make run_searchcat
make aboutVERSION
CMD
my @commands=split(/[\n;]/,$script);
foreach $cmd (@commands) {
    if ($cmd =~ /^cd\s+(\S*)/) {
	chdir($1);
    } elsif (0 != system("$cmd")) {
	open(WARN,">>WARNINGS");
	my $error = '**** ERROR **** command "'.$cmd.'" failed'.$/;
	print WARN ($error);
	print($error);
	last;
    }
}
system('make warningnote');

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>