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 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).

    1: #!/usr/bin/perl
    2: my $script=<<CMD;
    3: touch loncom/build/WARNINGS
    4: rm -f WARNINGS
    5: ln -s loncom/build/WARNINGS WARNINGS
    6: cd loncom/build;make build
    7: make rawinstall
    8: make configinstall
    9: make updatequery
   10: make hosts_and_domain_tab
   11: make postinstall
   12: make run_searchcat
   13: CMD
   14: my @commands=split(/[\n;]/,$script);
   15: foreach $cmd (@commands) {
   16:     if ($cmd =~ /^cd\s+(\S*)/) {
   17: 	chdir($1);
   18:     } elsif (0 != system("$cmd")) {
   19: 	open(WARN,">>WARNINGS");
   20: 	my $error = '**** ERROR **** command "'.$cmd.'" failed'.$/;
   21: 	print WARN ($error);
   22: 	print($error);
   23: 	last;
   24:     }
   25: }
   26: system('make warningnote');

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