File:  [LON-CAPA] / loncom / UPDATE
Revision 1.3: download - view: text, annotated - select for diffs
Thu Mar 10 16:08:24 2011 UTC (13 years, 9 months ago) by raeburn
Branches: MAIN
CVS tags: language_hyphenation_merge, language_hyphenation, HEAD, BZ4492-merge, BZ4492-feature_horizontal_radioresponse, BZ4492-feature_Support_horizontal_radioresponse, BZ4492-Support_horizontal_radioresponse
- Bug 6356.
  First stage of "make aboutVERSION" is now:
    Copy about.html to about.html.orig and copy loncapa_apache.conf to
    loncapa_apache.conf.orig (previously done separately in make tardist).
  New make target: postaboutVERSION restores from *.orig, as follows:
    in tardist: after tarball created.
    in install: after installation occurred (first item in postinstall).
  - "make aboutVERSION" removed as final operation when running UPDATE (redundant,
    since "make rawinstall" was already run).

#!/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
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>